gothub/.woodpecker.yml

35 lines
899 B
YAML
Raw Normal View History

2022-11-30 03:34:15 +05:30
pipeline:
build:
when:
2022-11-30 04:27:41 +05:30
event: [push, pull_request, tag]
2022-11-30 03:34:15 +05:30
image: golang:1.19.3-alpine
commands:
- go mod download
- go build .
dockerize:
when:
2022-11-30 04:25:33 +05:30
event: [push, tag]
2022-11-30 04:37:35 +05:30
branch: [main, master]
2022-11-30 03:34:15 +05:30
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