From 27cfb9628185e0def866093e92dabab8a47d0597 Mon Sep 17 00:00:00 2001 From: Alex Iribarren <Alex.Iribarren@cern.ch> Date: Mon, 6 Aug 2018 17:53:00 +0200 Subject: [PATCH] Auto update tag or use latest --- .gitlab-ci.yml | 1 + reposync.nomad | 2 +- reposync_scheduler.nomad | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index a225b4a..e900f19 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 eef8b5f..cb5ddc7 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 2ab308c..c791e88 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 { -- GitLab