mirror of
https://gitlab.durp.info/durfy/ci-includes/yml.git
synced 2026-05-07 07:50:30 -05:00
update
This commit is contained in:
parent
b19c3bdf94
commit
df1eb6fb89
5 changed files with 95 additions and 0 deletions
47
pipelines/docker-build-generic.yml
Normal file
47
pipelines/docker-build-generic.yml
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
stages:
|
||||
- build
|
||||
- package
|
||||
- publish
|
||||
|
||||
include:
|
||||
- template: Security/Secret-Detection.gitlab-ci.yml
|
||||
- project: 'developerdurp/yml'
|
||||
ref: 'main'
|
||||
file:
|
||||
- 'jobs/docker.yml'
|
||||
- 'jobs/version.yml'
|
||||
|
||||
secret_detection:
|
||||
stage: .pre
|
||||
rules:
|
||||
- when: always
|
||||
allow_failure: false
|
||||
|
||||
version:
|
||||
extends: .version
|
||||
stage: .pre
|
||||
rules:
|
||||
- when: always
|
||||
|
||||
build:
|
||||
extends: .docker_build
|
||||
stage: build
|
||||
artifacts:
|
||||
paths:
|
||||
- $CI_PROJECT_DIR/package
|
||||
needs:
|
||||
- job: version
|
||||
artifacts: true
|
||||
|
||||
upload:
|
||||
extends: .docker_push_gitlab
|
||||
stage: package
|
||||
needs:
|
||||
- job: version
|
||||
artifacts: true
|
||||
- job: build
|
||||
artifacts: true
|
||||
rules:
|
||||
- if: $CI_COMMIT_BRANCH =~ '/^release/'
|
||||
- if: $CI_COMMIT_BRANCH =~ 'main'
|
||||
- when: never
|
||||
Loading…
Add table
Add a link
Reference in a new issue