46 lines
No EOL
742 B
YAML
46 lines
No EOL
742 B
YAML
default:
|
|
image: debian:11
|
|
|
|
stages:
|
|
- build
|
|
- publish
|
|
- release
|
|
|
|
build:
|
|
stage: build
|
|
image: golang:1.21-alpine
|
|
before_script:
|
|
- apk update && apk add --no-cache make git
|
|
script:
|
|
- make build_password
|
|
artifacts:
|
|
paths:
|
|
- ./bin/*
|
|
|
|
publish_main:
|
|
stage: publish
|
|
image: golang:1.21-alpine
|
|
variables:
|
|
VER: latest
|
|
before_script:
|
|
- apk update && apk add --no-cache make git curl
|
|
script:
|
|
- make publish_password
|
|
needs:
|
|
- build
|
|
only:
|
|
- main
|
|
|
|
release_tag:
|
|
stage: publish
|
|
image: golang:1.21-alpine
|
|
variables:
|
|
VER: ${CI_COMMIT_TAG}
|
|
before_script:
|
|
- apk update && apk add --no-cache make git curl
|
|
script:
|
|
- make publish_password
|
|
needs:
|
|
- build
|
|
only:
|
|
- tags |