From 5fc0c79bbd8c38590bc91667ceb5ee751de1771d Mon Sep 17 00:00:00 2001 From: redxef Date: Wed, 9 Mar 2022 17:23:52 +0100 Subject: [PATCH] Map git tags to docker tags. --- ci/pipeline.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ci/pipeline.yml b/ci/pipeline.yml index 3e9dd37..c680c70 100644 --- a/ci/pipeline.yml +++ b/ci/pipeline.yml @@ -36,6 +36,9 @@ jobs: - | #!/usr/bin/env sh git rev-parse --short HEAD > docker-tags/tags.txt + git show-ref --tags | \ + sed -n "/$(git rev-parse HEAD)/ s|$(git rev-parse HEAD).refs/tags/||gp" \ + >> docker-tags/tags.txt - task: build privileged: true config: