Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn T Skarbek <jskarbek@gitlab.com>2019-02-19 16:51:36 +0300
committerMarin Jankovski <marin@gitlab.com>2019-02-19 16:51:36 +0300
commita992c908b0173741ba9e9b429392b88f7293d301 (patch)
treec56c66d63de6fa202fb81fb7c3dd3c3d443940a3 /scripts/build_assets_image
parente681c3802fef8f844f0ae073498b1ceff551ff8f (diff)
Adds the commit sha to the pushed assets
* This will upload the sha of the docker image containing assets to assist with building specific sha builds in the future. * Addresses: https://gitlab.com/gitlab-org/release/framework/issues/51
Diffstat (limited to 'scripts/build_assets_image')
-rwxr-xr-xscripts/build_assets_image4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/build_assets_image b/scripts/build_assets_image
index 4e5ef977161..9afada244c8 100755
--- a/scripts/build_assets_image
+++ b/scripts/build_assets_image
@@ -22,6 +22,8 @@ mkdir -p assets_container.build/public
cp -r public/assets assets_container.build/public/
cp Dockerfile.assets assets_container.build/
docker build -t ${ASSETS_IMAGE_PATH}:${CI_COMMIT_REF_SLUG} -f assets_container.build/Dockerfile.assets assets_container.build/
+docker tag ${ASSETS_IMAGE_PATH}:${CI_COMMIT_REF_SLUG} ${ASSETS_IMAGE_PATH}:${CI_COMMIT_SHA}
docker login -u gitlab-ci-token -p ${CI_JOB_TOKEN} ${CI_REGISTRY}
-docker push ${ASSETS_IMAGE_PATH}
+docker push ${ASSETS_IMAGE_PATH}:${CI_COMMIT_REF_SLUG}
+docker push ${ASSETS_IMAGE_PATH}:${CI_COMMIT_SHA}