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
6d1722b302
commit
190c9738c3
|
@ -1,15 +1,21 @@
|
|||
variables:
|
||||
- &golang "golang:1.19"
|
||||
|
||||
pipeline:
|
||||
test:
|
||||
image: golang:1.19
|
||||
image: *golang
|
||||
commands:
|
||||
- go test -v
|
||||
|
||||
build:
|
||||
image: golang:1.19
|
||||
image: *golang
|
||||
environment:
|
||||
TAG: ${CI_COMMIT_TAG:-latest}
|
||||
commands:
|
||||
- go build
|
||||
- ART=/artifacts/deblan/capture
|
||||
- test -d $ART || mkdir $ART
|
||||
- cp capture $ART/capture-${CI_COMMIT_SHA:0:8}
|
||||
- cp capture $ART/capture-latest
|
||||
- test -z ${CI_COMMIT_TAG} && cp capture $ART/capture-$TAG || true
|
||||
volumes:
|
||||
- /var/www/html/artifacts:/artifacts
|
||||
|
|
Loading…
Reference in a new issue