Skip to content
Snippets Groups Projects
Commit 9b95f785 authored by Marin Jankovski's avatar Marin Jankovski
Browse files

Merge branch 'fix-triggered-docker-build-tag' into 'master'

Fix setting environment variable in triggered builds

Closes #2564

See merge request !1720
parents 345e49a8 a7f2d64d
No related branches found
No related tags found
1 merge request!1720Fix setting environment variable in triggered builds
Loading
Loading
@@ -290,6 +290,12 @@ Trigger:docker:
services:
- docker:dind
script:
# While triggering from omnibus repo in .com, we explicitly pass IMAGE_TAG
# variable, which will be used to tag the final Docker image.
# So, if IMAGE_TAG variable is empty, it means the trigger happened from
# either CE or EE repository. In that case, we can use the GITLAB_VERSION
# variable as IMAGE_TAG.
- if [ -z "${IMAGE_TAG}" ] ; then export IMAGE_TAG=${GITLAB_VERSION} ; fi
- make docker_trigger_build_and_push
only:
- triggers@gitlab-org/omnibus-gitlab
Loading
Loading
Loading
Loading
@@ -52,13 +52,7 @@ move_to_platform_dir:
 
docker_trigger_build_and_push:
bundle exec rake docker:build:image
# While triggering from omnibus repo in .com, we explicitly pass IMAGE_TAG
# variable, which will be used to tag the final Docker image.
# So, if IMAGE_TAG variable is empty, it means the trigger happened from
# either CE or EE repository. In that case, we can use the GITLAB_VERSION
# variable as IMAGE_TAG.
if [ -z "$(IMAGE_TAG)" ] ; then export IMAGE_TAG=$(GITLAB_VERSION) ; fi
DOCKER_TAG=$(IMAGE_TAG) bundle exec rake docker:push:triggered
DOCKER_TAG=${IMAGE_TAG} bundle exec rake docker:push:triggered
 
sync:
aws s3 sync pkg/ s3://${RELEASE_BUCKET} --acl public-read --region ${RELEASE_BUCKET_REGION}
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment