mirror of
https://gitlab.durp.info/durfy/ci-includes/yml.git
synced 2026-05-08 16:31:21 -05:00
update
This commit is contained in:
parent
722d963839
commit
52116ff6c9
6 changed files with 97 additions and 135 deletions
32
pipelines/docker-build.yml
Normal file
32
pipelines/docker-build.yml
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
include:
|
||||
- project: 'developerdurp/yml'
|
||||
ref: 'main'
|
||||
file:
|
||||
- 'jobs/docker.yml'
|
||||
|
||||
docker-build:
|
||||
extends: .docker_build
|
||||
stage: build
|
||||
needs:
|
||||
- job: gobuild
|
||||
artifacts: true
|
||||
- job: version
|
||||
optional: true
|
||||
artifacts: true
|
||||
rules:
|
||||
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH || $CI_COMMIT_BRANCH =~ '/^release/' || $CI_MERGE_REQUEST_IID
|
||||
exists:
|
||||
- "Dockerfile"
|
||||
|
||||
docker-push:
|
||||
extends: .docker_push_gitlab
|
||||
stage: publish
|
||||
needs:
|
||||
- job: gobuild
|
||||
artifacts: true
|
||||
- job: version
|
||||
artifacts: true
|
||||
rules:
|
||||
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH || $CI_COMMIT_BRANCH =~ '/^release/'
|
||||
exists:
|
||||
- "Dockerfile"
|
||||
Loading…
Add table
Add a link
Reference in a new issue