mirror of
https://gitlab.sarex.io/infra/terraform-contour-mirror.git
synced 2026-08-09 05:21:36 +03:00
update gitlab ci
This commit is contained in:
parent
4bae72d7c5
commit
53b9017dda
@ -24,7 +24,6 @@ trigger-downstream:
|
|||||||
include:
|
include:
|
||||||
- artifact: .gitlab-ci.generated.yml
|
- artifact: .gitlab-ci.generated.yml
|
||||||
job: generate-pipeline
|
job: generate-pipeline
|
||||||
strategy: depend
|
|
||||||
rules:
|
rules:
|
||||||
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
|
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
|
||||||
- if: '$CI_COMMIT_BRANCH == "master" || $CI_COMMIT_BRANCH == "main"'
|
- if: '$CI_COMMIT_BRANCH == "master" || $CI_COMMIT_BRANCH == "main"'
|
||||||
|
|||||||
30
.gitlab-ci.yml.bak
Normal file
30
.gitlab-ci.yml.bak
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
stages:
|
||||||
|
- generate
|
||||||
|
- trigger
|
||||||
|
|
||||||
|
generate-pipeline:
|
||||||
|
stage: generate
|
||||||
|
image: alpine:latest
|
||||||
|
before_script:
|
||||||
|
- apk add --no-cache bash findutils
|
||||||
|
script:
|
||||||
|
- ./scripts/generate-pipeline.sh
|
||||||
|
artifacts:
|
||||||
|
paths:
|
||||||
|
- .gitlab-ci.generated.yml
|
||||||
|
expire_in: 1 hour
|
||||||
|
rules:
|
||||||
|
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
|
||||||
|
- if: '$CI_COMMIT_BRANCH == "master" || $CI_COMMIT_BRANCH == "main"'
|
||||||
|
- if: '$CI_COMMIT_BRANCH =~ /^feature\/.*/'
|
||||||
|
|
||||||
|
trigger-downstream:
|
||||||
|
stage: trigger
|
||||||
|
trigger:
|
||||||
|
include:
|
||||||
|
- artifact: .gitlab-ci.generated.yml
|
||||||
|
job: generate-pipeline
|
||||||
|
rules:
|
||||||
|
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
|
||||||
|
- if: '$CI_COMMIT_BRANCH == "master" || $CI_COMMIT_BRANCH == "main"'
|
||||||
|
- if: '$CI_COMMIT_BRANCH =~ /^feature\/.*/'
|
||||||
Loading…
Reference in New Issue
Block a user