gitlin/.woodpecker.yml
2022-11-30 12:23:14 +01:00

38 行
957 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]
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: dev