Commit a9303efd authored by David Blyth's avatar David Blyth

CI: deploy to electronioncollider as well as argonneeic

Also removed old deploy.sh
parent 37052df5
Pipeline #592 passed with stages
in 18 seconds
......@@ -15,9 +15,12 @@ deploy-latest:
stage: deploy
script:
- sh -c "docker rmi argonneeic/base:latest || :"
- sh -c "docker rmi electronioncollider/anl-base:latest || :"
- docker tag argonneeic/base:job-$CI_PIPELINE_ID argonneeic/base
- docker tag argonneeic/base:job-$CI_PIPELINE_ID electronioncollider/anl-base
- docker login -u $DOCKER_HUB_USER -p $DOCKER_HUB_PASSWD
- docker push argonneeic/base:latest
- docker push electronioncollider/anl-base:latest
dependencies: []
only:
- master
......@@ -26,9 +29,12 @@ deploy-tag:
stage: deploy
script:
- sh -c 'docker rmi argonneeic/base:$CI_COMMIT_REF_NAME || :'
- sh -c 'docker rmi electronioncollider/anl-base:$CI_COMMIT_REF_NAME || :'
- docker tag argonneeic/base:job-$CI_PIPELINE_ID argonneeic/base:$CI_COMMIT_REF_NAME
- docker tag argonneeic/base:job-$CI_PIPELINE_ID electronioncollider/anl-base:$CI_COMMIT_REF_NAME
- docker login -u $DOCKER_HUB_USER -p $DOCKER_HUB_PASSWD
- docker push argonneeic/base:$CI_COMMIT_REF_NAME
- docker push electronioncollider/anl-base:$CI_COMMIT_REF_NAME
dependencies: []
only:
- tags
......
#!/bin/bash
docker login -u $DOCKER_HUB_USER -p $DOCKER_HUB_PASSWD
docker push argonneeic/base:latest
tag=$(git describe --exact-match --tags HEAD)
if [ "$?" == "0" ]; then
docker tag argonneeic/base argonneeic/base:$tag
docker push argonneeic/base:$tag
fi
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment