Skip to content
Snippets Groups Projects
Commit 57a2f329 authored by Nick Bearson's avatar Nick Bearson
Browse files

add git tags to our registry images, when they exist

parent 8111e609
No related branches found
No related tags found
1 merge request!21CI test prep
......@@ -45,6 +45,26 @@ create the Gridded GLM package:
# # upload the package to /apollo/ via a limited-use key on espresso
# - rsync -auv -e "ssh -T -o StrictHostKeyChecking=no -o IdentitiesOnly=yes -o ForwardAgent=no -i $NICKB_UPLOAD_KEY" cspp-geo-gridded-glm-$CI_COMMIT_SHORT_SHA.tar.xz nickb@espresso:/apollo/csppgeo/packages/gridded-glm/ci/cspp-geo-gridded-glm-$CI_COMMIT_SHORT_SHA.tar.xz
push our images with version tags:
stage: release
image: docker:19.03.1
tags:
- docker
services:
- docker:19.03.1-dind
rules:
- if: '$CI_COMMIT_TAG'
script:
- docker login --username $CI_REGISTRY_USER --password $CI_REGISTRY_PASSWORD $CI_REGISTRY
# buildbucket
- docker pull $BUILDBUCKET_IMAGE:$CI_COMMIT_SHORT_SHA
- if [ $CI_COMMIT_TAG != '' ]; then docker tag $BUILDBUCKET_IMAGE:$CI_COMMIT_SHORT_SHA $BUILDBUCKET_IMAGE:$CI_COMMIT_TAG; fi
- if [ $CI_COMMIT_TAG != '' ]; then docker push $BUILDBUCKET_IMAGE:$CI_COMMIT_TAG; fi
# gridded_glm
- docker pull $GRIDDED_GLM_IMAGE:$CI_COMMIT_SHORT_SHA
- if [ $CI_COMMIT_TAG != '' ]; then docker tag $GRIDDED_GLM_IMAGE:$CI_COMMIT_SHORT_SHA $GRIDDED_GLM_IMAGE:$CI_COMMIT_TAG; fi
- if [ $CI_COMMIT_TAG != '' ]; then docker push $GRIDDED_GLM_IMAGE:$CI_COMMIT_TAG; fi
push our images as latest tags:
stage: release
image: docker:19.03.1
......
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