All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
37 lines
984 B
YAML
37 lines
984 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: git.projectsegfau.lt
|
|
repo: git.projectsegfau.lt/midou/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: git.projectsegfau.lt
|
|
repo: git.projectsegfau.lt/midou/gothub
|
|
username:
|
|
from_secret: user
|
|
password:
|
|
from_secret: passwd
|
|
# password = key or actual password
|
|
tags: dev
|