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