From 4255488334b4a0e5f71bb99380a0d7f93cfb6ced Mon Sep 17 00:00:00 2001 From: Simon Stone Date: Wed, 16 Sep 2020 16:52:21 +0100 Subject: [PATCH] Remove v prefix from image tag (contributes to #21) (#51) Signed-off-by: Simon Stone --- azure-pipelines.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index c73ddba..150f452 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -57,7 +57,7 @@ steps: displayName: Build Docker image - script: | set -euo pipefail - VERSION=$(git describe --exact-match --tags $(Build.SourceVersion)) + VERSION=$(git describe --exact-match --tags $(Build.SourceVersion) | sed 's/^v//') docker tag ibmcom/ibp-microfab:latest ibmcom/ibp-microfab:${VERSION} docker login -u $(Docker Hub User Name) -p $(Docker Hub Access Token) docker push ibmcom/ibp-microfab:${VERSION}