capture/.woodpecker.yml
Simon Vieille 8a11deed01
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/deployment/woodpecker Pipeline was successful
update build
2023-09-01 09:14:29 +02:00

43 lines
954 B
YAML

variables:
- &golang "golang:1.19"
- &volumes
- /var/www/html/artifacts/deblan/capture:/artifacts
pipeline:
test:
image: *golang
commands:
- go test -v
build:
image: *golang
volumes: *volumes
commands:
- make
push_release:
image: plugins/gitea-release
volumes: *volumes
settings:
api_key:
from_secret: gitnet_api_key
base_url: https://gitnet.fr
note: ${CI_COMMIT_MESSAGE}
files: build/*
when:
event: [tag]
docker_build_push:
image: docker:dind
secrets:
- registry_user
- registry_password
commands:
- echo "$REGISTRY_PASSWORD" | docker login -u "$REGISTRY_USER" --password-stdin
- "docker build -t deblan/capture:${CI_PIPELINE_DEPLOY_TARGET} ."
- "docker push deblan/capture:${CI_PIPELINE_DEPLOY_TARGET}"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
when:
event: [deployment]