21 lines
435 B
YAML
21 lines
435 B
YAML
variables:
|
|
- &golang "golang:1.19"
|
|
|
|
pipeline:
|
|
test:
|
|
image: *golang
|
|
commands:
|
|
- go test -v
|
|
|
|
build:
|
|
image: *golang
|
|
commands:
|
|
- go build
|
|
- ART=/artifacts/deblan/capture
|
|
- test -d $ART || mkdir $ART
|
|
- cp capture $ART/capture-latest
|
|
- tAG="${CI_COMMIT_TAG}"
|
|
- test -n "$TAG" && "cp -v capture $ART/capture-$TAG" || true
|
|
volumes:
|
|
- /var/www/html/artifacts:/artifacts
|