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:37:35 +05:30
|
|
|
branch: [main, master]
|
2022-11-30 16:44:49 +05:30
|
|
|
event: [push]
|
2022-11-30 03:34:15 +05:30
|
|
|
image: plugins/docker
|
|
|
|
settings:
|
2022-11-30 18:15:51 +05:30
|
|
|
registry: git.projectsegfau.lt
|
|
|
|
repo: git.projectsegfau.lt/Midou36O/gothub
|
2022-11-30 03:34:15 +05:30
|
|
|
username:
|
2022-11-30 16:44:49 +05:30
|
|
|
from_secret: user
|
2022-11-30 03:34:15 +05:30
|
|
|
password:
|
2022-11-30 16:44:49 +05:30
|
|
|
from_secret: passwd
|
2022-11-30 03:34:15 +05:30
|
|
|
# password = key or actual password
|
2022-11-30 16:44:49 +05:30
|
|
|
tags: latest
|
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:
|
2022-11-30 18:15:51 +05:30
|
|
|
registry: git.projectsegfau.lt
|
|
|
|
repo: git.projectsegfau.lt/Midou36O/gothub
|
2022-11-30 03:56:35 +05:30
|
|
|
username:
|
2022-11-30 16:44:49 +05:30
|
|
|
from_secret: user
|
2022-11-30 03:56:35 +05:30
|
|
|
password:
|
2022-11-30 16:44:49 +05:30
|
|
|
from_secret: passwd
|
2022-11-30 03:56:35 +05:30
|
|
|
# password = key or actual password
|
|
|
|
tags: dev
|