mirror of
https://gitlab.durp.info/durfy/ci-includes/yml.git
synced 2026-05-09 00:31:33 -05:00
update
This commit is contained in:
parent
f1d097a01a
commit
70823bb3ed
10 changed files with 37 additions and 20 deletions
|
|
@ -1,6 +1,7 @@
|
|||
stages:
|
||||
- build
|
||||
- package
|
||||
- validate
|
||||
- publish
|
||||
|
||||
include:
|
||||
|
|
@ -26,8 +27,21 @@ gobuild:
|
|||
extends: .golang-build
|
||||
stage: build
|
||||
|
||||
docker-build:
|
||||
extends: .docker_build
|
||||
stage: build
|
||||
needs:
|
||||
- job: gobuild
|
||||
artifacts: true
|
||||
- job: version
|
||||
optional: true
|
||||
artifacts: true
|
||||
rules:
|
||||
- exists:
|
||||
- "Dockerfile"
|
||||
|
||||
docker:
|
||||
extends: .docker-build-container
|
||||
extends: .docker_push_gitlab
|
||||
stage: publish
|
||||
needs:
|
||||
- job: gobuild
|
||||
|
|
@ -36,19 +50,8 @@ docker:
|
|||
artifacts: true
|
||||
rules:
|
||||
- if: $CI_COMMIT_REF_NAME == 'main'
|
||||
- if: $CI_COMMIT_BRANCH =~ '/^release/'
|
||||
|
||||
publish:
|
||||
extends: .octo_release
|
||||
stage: publish
|
||||
needs:
|
||||
- job: version
|
||||
artifacts: true
|
||||
rules:
|
||||
exists:
|
||||
- "Dockerfile"
|
||||
- if: $CI_COMMIT_BRANCH =~ '/^release/'
|
||||
exists:
|
||||
- $OCTO_PROJECT_NAME
|
||||
- if: $CI_COMMIT_BRANCH =~ 'main'
|
||||
exists:
|
||||
- $OCTO_PROJECT_NAME
|
||||
- when: never
|
||||
- "Dockerfile"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue