diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index a225b4a9fcf7d6e9864c87c58a5809a84f2cc424..e900f196ea16b40ea2727eea8f7e663e85c0f8a5 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -96,6 +96,7 @@ tag_scheduler: before_script: - curl https://releases.hashicorp.com/nomad/${NOMAD_VERSION}/nomad_${NOMAD_VERSION}_linux_amd64.zip -o /tmp/nomad.zip - unzip /tmp/nomad.zip -d /usr/local/bin/ + - export IMAGE_VER="${CI_COMMIT_TAG:-latest}" deploy_test: <<: *nomad_deps diff --git a/reposync.nomad b/reposync.nomad index eef8b5f861fea58e6984dcb66a7b790c2aba1132..cb5ddc729e69ab52776e9302b23b9dfe29173e0a 100644 --- a/reposync.nomad +++ b/reposync.nomad @@ -13,7 +13,7 @@ job "reposync" { driver = "docker" config { - image = "https://gitlab-registry.cern.ch/linuxsupport/containers/reposync_test/do_reposync:0.2" + image = "https://gitlab-registry.cern.ch/linuxsupport/containers/reposync_test/do_reposync:${IMAGE_VER}" volumes = [ "/tmp/repos:/repo" ] diff --git a/reposync_scheduler.nomad b/reposync_scheduler.nomad index 2ab308cd9745e3a1fea030aadafd21c95b3f3d1e..c791e8801ba68ef168665e141722de2f990c7f55 100644 --- a/reposync_scheduler.nomad +++ b/reposync_scheduler.nomad @@ -16,7 +16,7 @@ job "reposync_scheduler" { driver = "docker" config { - image = "https://gitlab-registry.cern.ch/linuxsupport/containers/reposync_test/reposync_scheduler:0.2" + image = "https://gitlab-registry.cern.ch/linuxsupport/containers/reposync_test/reposync_scheduler:${IMAGE_VER}" } env {