37 lines
1.3 KiB
YAML
37 lines
1.3 KiB
YAML
.releases:rules:canonical-dot-com-gitlab-stable-branch-only:
|
|
rules:
|
|
- if: '$CI_SERVER_HOST == "gitlab.com" && $CI_PROJECT_NAME == "gitlab-org/gitlab" && $CI_COMMIT_REF_NAME =~ /^[\d-]+-stable-ee$/'
|
|
|
|
.releases:rules:canonical-dot-com-security-gitlab-stable-branch-only:
|
|
rules:
|
|
- if: '$CI_SERVER_HOST == "gitlab.com" && $CI_PROJECT_NAME == "gitlab-org/security/gitlab" && $CI_COMMIT_REF_NAME =~ /^[\d-]+-stable-ee$/'
|
|
|
|
# Syncs any changes pushed to a stable branch to the corresponding
|
|
# gitlab-foss/CE stable branch. We run this prior to any tests so that random
|
|
# failures don't prevent a sync.
|
|
.merge-train-sync:
|
|
# We don't need/want any global before/after commands, so we overwrite these
|
|
# settings.
|
|
image: alpine:edge
|
|
stage: sync
|
|
before_script:
|
|
- apk add --no-cache --update curl bash jq
|
|
script:
|
|
- bash scripts/sync-stable-branch.sh
|
|
|
|
sync-stable-branch:
|
|
extends:
|
|
- .releases:rules:canonical-dot-com-gitlab-stable-branch-only
|
|
- .merge-train-sync
|
|
variables:
|
|
SOURCE_PROJECT: gitlab-org/gitlab
|
|
TARGET_PROJECT: gitlab-org/gitlab-foss
|
|
|
|
sync-security-branch:
|
|
extends:
|
|
- .releases:rules:canonical-dot-com-security-gitlab-stable-branch-only
|
|
- .merge-train-sync
|
|
variables:
|
|
SOURCE_PROJECT: gitlab-org/security/gitlab
|
|
TARGET_PROJECT: gitlab-org/security/gitlab-foss
|