gothub/.woodpecker.yml

37 lines
915 B
YAML
Raw Normal View History

2022-11-30 03:34:15 +05:30
pipeline:
build:
when:
event: [push, pull_request]
image: golang:1.19.3-alpine
commands:
- go mod download
- go build .
dockerize:
when:
2022-11-30 03:56:35 +05:30
branch: [main, master]
2022-11-30 03:34:15 +05:30
event: [push]
image: plugins/docker
settings:
2022-11-30 03:48:25 +05:30
repo: odyssey/gothub
2022-11-30 03:34:15 +05:30
username:
from_secret: docker_user
password:
from_secret: docker_passwd
# password = key or actual password
auto_tag: true
2022-11-30 03:56:35 +05:30
dockerize-dev:
when:
event: [push]
2022-11-30 03:34:15 +05:30
branch: [dev]
2022-11-30 03:56:35 +05:30
image: plugins/docker
settings:
repo: odyssey/gothub
username:
from_secret: docker_user
password:
from_secret: docker_passwd
# password = key or actual password
tags: dev
2022-11-30 03:34:15 +05:30
2022-11-30 03:37:27 +05:30
branches: [main, master]