update ci configuration
This commit is contained in:
parent
50f8bb6e20
commit
e671ce666b
|
@ -10,12 +10,12 @@ pipeline:
|
||||||
build:
|
build:
|
||||||
image: *golang
|
image: *golang
|
||||||
environment:
|
environment:
|
||||||
TAG: ${CI_COMMIT_TAG:-latest}
|
TAG: ${CI_COMMIT_TAG}
|
||||||
commands:
|
commands:
|
||||||
- go build
|
- go build
|
||||||
- ART=/artifacts/deblan/capture
|
- ART=/artifacts/deblan/capture
|
||||||
- test -d $ART || mkdir $ART
|
- test -d $ART || mkdir $ART
|
||||||
- cp capture $ART/capture-latest
|
- cp capture $ART/capture-latest
|
||||||
- test -z ${CI_COMMIT_TAG} && cp capture $ART/capture-$TAG || true
|
- test -z $TAG && cp capture $ART/capture-$TAG || true
|
||||||
volumes:
|
volumes:
|
||||||
- /var/www/html/artifacts:/artifacts
|
- /var/www/html/artifacts:/artifacts
|
||||||
|
|
Loading…
Reference in a new issue