From 1fcf19ae1b052f3a62e64383a54bf82920fafe87 Mon Sep 17 00:00:00 2001 From: Sebastian Silva Date: Thu, 2 Aug 2018 22:52:19 -0500 Subject: [PATCH] Auto tag image --- .gitlab-ci.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 8f36618..ba5b172 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,7 +1,9 @@ image: gitlab/dind +variables: + VERSION: ${CI_COMMIT_REF_NAME} + before_script: - - docker info - apt-get update && apt-get install -y --no-install-recommends make linux-image-generic job: @@ -9,5 +11,5 @@ job: - make sd-image artifacts: paths: - - hypriotos-rpi-dirty.img.zip - - hypriotos-rpi-dirty.img.zip.sha256 + - hypriotos-rpi-${VERSION}.img.zip + - hypriotos-rpi-${VERSION}.img.zip.sha256