woodpecker-crane-login/.woodpecker.yml

29 lines
717 B
YAML

pipeline:
login:
image: gitea.treehouse.systems/ariadne/woodpecker-crane-login:latest
settings:
registry: gitea.treehouse.systems
username: ariadne
password:
from_secret: registry_token
when:
event: tag
tag: v*
build:
image: golang:1.19-alpine
commands:
- go build
publish:
image: distroless.dev/ko:latest
commands:
- |
export DOCKER_CONFIG=${CI_WORKSPACE}/.docker.json
export HOME=/home/nonroot
export KO_DOCKER_REPO="gitea.treehouse.systems/ariadne/woodpecker-crane-login"
/usr/bin/ko publish --bare -t ${CI_COMMIT_TAG#v} -t latest $KO_DOCKER_REPO
when:
event: tag
tag: v*