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:
|
|
|
|
event: [push]
|
|
|
|
image: plugins/docker
|
|
|
|
settings:
|
|
|
|
username:
|
|
|
|
from_secret: docker_user
|
|
|
|
password:
|
|
|
|
from_secret: docker_passwd
|
|
|
|
# password = key or actual password
|
|
|
|
auto_tag: true
|
|
|
|
repo: odyssey/Gothub
|
|
|
|
when:
|
|
|
|
branch: [dev]
|
|
|
|
auto_tag_suffix: dev
|
|
|
|
|
|
|
|
|
2022-11-30 03:37:27 +05:30
|
|
|
branches: [main, master]
|