gothub/.woodpecker.yml
Midou36O 838a22b3c0
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
last test
2022-11-30 12:14:49 +01:00

38 lines
983 B
YAML

pipeline:
build:
when:
event: [push, pull_request, tag]
image: golang:1.19.3-alpine
commands:
- go mod download
- go build .
dockerize:
when:
branch: [main, master]
event: [push]
image: plugins/docker
settings:
registry: codeberg.org
repo: codeberg.org/odyssium/gothub
username:
from_secret: user
password:
from_secret: passwd
# password = key or actual password
tags: latest
dockerize-dev:
when:
event: [push]
branch: [dev]
registry: codeberg.org
repo: codeberg.org/odyssium/gothub
image: plugins/docker
settings:
repo: odyssey/gothub
username:
from_secret: user
password:
from_secret: passwd
# password = key or actual password
tags: dev