38 lines
983 B
YAML
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
|