debian-mirror-gitlab/.gitlab/ci/releases.gitlab-ci.yml

37 lines
971 B
YAML
Raw Normal View History

2019-12-26 22:10:19 +05:30
---
2020-01-01 13:55:28 +05:30
# 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:
2019-12-26 22:10:19 +05:30
# 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
after_script: []
script:
- bash scripts/sync-stable-branch.sh
2020-01-01 13:55:28 +05:30
only:
variables:
- $CI_SERVER_HOST == "gitlab.com"
sync-stable-branch:
extends: .merge-train-sync
variables:
SOURCE_PROJECT: gitlab-org/gitlab
TARGET_PROJECT: gitlab-org/gitlab-foss
only:
refs:
- /^[\d-]+-stable-ee$/@gitlab-org/gitlab
2020-01-03 18:37:03 +05:30
sync-security-branch:
extends: .merge-train-sync
variables:
SOURCE_PROJECT: gitlab-org/security/gitlab
TARGET_PROJECT: gitlab-org/security/gitlab-foss
only:
refs:
- /^[\d-]+-stable-ee$/@gitlab-org/security/gitlab