update ci configuration

This commit is contained in:
Simon Vieille 2023-05-26 16:49:01 +02:00
parent 50f8bb6e20
commit e671ce666b
Signed by: deblan
GPG key ID: 579388D585F70417

View file

@ -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