2023-08-20 12:57:34 +00:00
|
|
|
stages:
|
|
|
|
|
- build
|
|
|
|
|
- publish
|
|
|
|
|
|
|
|
|
|
include:
|
|
|
|
|
- project: 'developerdurp/yml'
|
2023-11-23 19:54:23 +00:00
|
|
|
ref: 'main'
|
2023-08-20 12:57:34 +00:00
|
|
|
file:
|
|
|
|
|
- 'jobs/version.yml'
|
|
|
|
|
- 'jobs/helm.yml'
|
|
|
|
|
|
|
|
|
|
version:
|
|
|
|
|
extends: .version
|
|
|
|
|
stage: .pre
|
|
|
|
|
rules:
|
|
|
|
|
- if: $CI_COMMIT_REF_NAME == 'main'
|
|
|
|
|
- if: $CI_COMMIT_BRANCH =~ '/^release/'
|
|
|
|
|
|
|
|
|
|
helm-build:
|
|
|
|
|
extends: .helm-build
|
|
|
|
|
stage: build
|
|
|
|
|
needs:
|
|
|
|
|
- job: version
|
|
|
|
|
artifacts: true
|
|
|
|
|
rules:
|
|
|
|
|
- if: $CI_COMMIT_REF_NAME == 'main'
|
|
|
|
|
- if: $CI_COMMIT_BRANCH =~ '/^release/'
|
|
|
|
|
|
2023-08-20 13:02:51 +00:00
|
|
|
helm-push:
|
2023-08-20 12:57:34 +00:00
|
|
|
extends: .helm-push
|
|
|
|
|
stage: publish
|
|
|
|
|
needs:
|
|
|
|
|
- job: helm-build
|
2023-08-20 13:38:31 +00:00
|
|
|
artifacts: true
|
2023-08-20 12:57:34 +00:00
|
|
|
- job: version
|
|
|
|
|
artifacts: true
|
|
|
|
|
rules:
|
|
|
|
|
- if: $CI_COMMIT_REF_NAME == 'main'
|
|
|
|
|
- if: $CI_COMMIT_BRANCH =~ '/^release/'
|