update ci configuration
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
parent
61b1cd18cd
commit
5346e68c5c
|
@ -1,5 +1,7 @@
|
||||||
variables:
|
variables:
|
||||||
- &golang "golang:1.19"
|
- &golang "golang:1.19"
|
||||||
|
- &volumes
|
||||||
|
- /var/www/html/artifacts/capture/deblan:/artifacts
|
||||||
|
|
||||||
pipeline:
|
pipeline:
|
||||||
test:
|
test:
|
||||||
|
@ -9,12 +11,18 @@ pipeline:
|
||||||
|
|
||||||
build:
|
build:
|
||||||
image: *golang
|
image: *golang
|
||||||
|
volumes: *volumes
|
||||||
commands:
|
commands:
|
||||||
- go build
|
- go build -o /artifacts/capture
|
||||||
- ART=/artifacts/deblan/capture
|
|
||||||
- test -d $ART || mkdir $ART
|
push-release:
|
||||||
- cp capture $ART/capture-latest
|
image: plugins/gitea-release
|
||||||
- TAG="${CI_COMMIT_TAG}"
|
volumes: *volumes
|
||||||
- test -n "$TAG" && cp -v capture "$ART/capture-$TAG" || true
|
settings:
|
||||||
volumes:
|
api_key:
|
||||||
- /var/www/html/artifacts:/artifacts
|
from_secret: gitnet_api_key
|
||||||
|
base_url: https://gitnet.fr
|
||||||
|
note: ${CI_COMMIT_MESSAGE}
|
||||||
|
files: /artifacts/capture
|
||||||
|
when:
|
||||||
|
event: [tag]
|
||||||
|
|
Loading…
Reference in a new issue