48 lines
840 B
YAML
48 lines
840 B
YAML
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_container:
|
|
extends: .docker-build-container
|
|
stage: build
|
|
artifacts:
|
|
paths:
|
|
- $CI_PROJECT_DIR/packages
|
|
needs:
|
|
- job: version
|
|
artifacts: true
|
|
|
|
#publish_container:
|
|
# extends: .docker_push_gitlab
|
|
# stage: publish
|
|
# needs:
|
|
# - job: version
|
|
# artifacts: true
|
|
# - job: build_container
|
|
# artifacts: true
|
|
# rules:
|
|
# - if: $CI_COMMIT_BRANCH =~ '/^release/'
|
|
# - if: $CI_COMMIT_BRANCH =~ 'main'
|
|
# - when: never
|