summaryrefslogtreecommitdiff
path: root/.gitlab/ci/releases.gitlab-ci.yml
blob: 1ddc4e90fcfbd8581694ddc23737261549ad3202 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
---

# Syncs any changes pushed to a stable branch to the corresponding CE stable
# branch. We run this prior to any tests so that random failures don't prevent a
# sync.
sync-stable-branch:
  # We don't need/want any global before/after commands, so we overwrite these
  # settings.
  image: alpine:edge
  stage: sync
  # This job should only run on EE stable branches on the canonical GitLab.com
  # repository.
  only:
    variables:
      - $CI_SERVER_HOST == "gitlab.com"
    refs:
      - /^[\d-]+-stable-ee$/@gitlab-org/gitlab
  before_script:
    - apk add --no-cache --update curl bash
  after_script: []
  script:
    - bash scripts/sync-stable-branch.sh