woodpecker-crane-login/.woodpecker.yml

26 lines
651 B
YAML
Raw Normal View History

2022-08-04 21:53:09 +00:00
pipeline:
login:
image: gitea.treehouse.systems/ariadne/woodpecker-crane-login
settings:
registry: gitea.treehouse.systems
username: ariadne
password:
from_secret: REGISTRY_TOKEN
secrets: [REGISTRY_TOKEN]
build:
image: golang:1.19-alpine
commands:
- go build
publish:
image: alpine
commands:
- echo 'http://mirror.fcix.net/alpine/edge/testing' >> /etc/apk/repositories
- apk add ko
- KO_DOCKER_REPO="gitea.treehouse.systems/ariadne/woodpecker-crane-login" \
/ko-app/ko publish --bare -t ${CI_COMMIT_TAG#v} -t latest
when:
event: tag
tag: v*