summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorDJ Mountney <david@twkie.net>2018-05-17 14:10:37 -0700
committerDJ Mountney <david@twkie.net>2018-05-17 15:17:53 -0700
commit0bc78d08000ae1d5ee0943c8991d6d3fee7977e3 (patch)
tree9ab0b6a675379911f62ee1efda0f5e239adf353d /.gitlab-ci.yml
parent09a387b5e7ac5221be3073b68461526c3a0dcc4a (diff)
downloadgitlab-ce-0bc78d08000ae1d5ee0943c8991d6d3fee7977e3.tar.gz
Build cloud native images on tags
When on a tag, trigger a multi-project pipeline in the CNG repostiory. Opting for a trigger rather than an addition to our release-tools project for a few reasons: - The Dockerfiles in the CNG image repo change infrequently, and as a result I don't feel the need/overhead for stable branches in that repo at this time - My intent with the CNG repo, is that once stable, the Dockerfiles would actualy move to their component projects, to be versioned with the code they are building - It is likely that we will want to followup with a manually triggered package for branches for devs, and possibly review apps, so it made sense to build the CNG ci jobs to accept this sort of pipeline.
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml19
1 files changed, 19 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 84d8e69b84e..cc6fd5e2bfe 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -298,6 +298,25 @@ review-docs-cleanup:
script:
- ./trigger-build-docs cleanup
+##
+# Trigger a docker image build in CNG (Cloud Native GitLab) repository
+#
+cloud-native-image:
+ image: ruby:2.4-alpine
+ before_script: []
+ stage: build
+ allow_failure: true
+ cache: {}
+ retry: 0
+ before_script:
+ - gem install gitlab --no-doc
+ - chmod 755 ./scripts/trigger-build-cloud-native
+ script:
+ - ./scripts/trigger-build-cloud-native
+ only:
+ - tags@gitlab-org/gitlab-ce
+ - tags@gitlab-org/gitlab-ee
+
# Retrieve knapsack and rspec_flaky reports
retrieve-tests-metadata:
<<: *tests-metadata-state