mirror of
https://codeberg.org/gothub/gothub
synced 2024-12-06 19:16:24 +01:00
@@ -1,38 +0,0 @@
|
||||
pipeline:
|
||||
build:
|
||||
when:
|
||||
event: [push, pull_request, tag]
|
||||
image: golang:1.19.3-alpine
|
||||
commands:
|
||||
- go mod download
|
||||
- go build -ldflags "-X codeberg.org/gothub/gothub/pages.Version=${CI_COMMIT_SHA:0:8}"
|
||||
dockerize:
|
||||
when:
|
||||
branch: [main, master]
|
||||
event: [push]
|
||||
image: plugins/docker
|
||||
settings:
|
||||
registry: codeberg.org
|
||||
repo: codeberg.org/gothub/gothub
|
||||
username:
|
||||
from_secret: user
|
||||
password:
|
||||
from_secret: passwd
|
||||
# password = key or actual password
|
||||
tags: latest
|
||||
dockerfile: Dockerfile
|
||||
|
||||
dockerize-dev:
|
||||
when:
|
||||
event: [push]
|
||||
branch: [dev]
|
||||
image: plugins/docker
|
||||
settings:
|
||||
registry: codeberg.org
|
||||
repo: codeberg.org/gothub/gothub
|
||||
username:
|
||||
from_secret: user
|
||||
password:
|
||||
from_secret: passwd
|
||||
# password = key or actual password
|
||||
tags: ${CI_COMMIT_SHA:0:8}
|
||||
Reference in New Issue
Block a user