add woodpecker config
ci/woodpecker/push/woodpecker Pipeline failed Details

main
Ariadne Conill 2022-08-04 16:53:09 -05:00
parent 4971944761
commit c2698fc17e
1 changed files with 25 additions and 0 deletions

25
.woodpecker.yml Normal file
View File

@ -0,0 +1,25 @@
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*