Map git tags to docker tags.

This commit is contained in:
redxef 2022-03-09 17:23:52 +01:00
parent 7864738448
commit 5fc0c79bbd
Signed by: redxef
GPG key ID: 7DAC3AA211CBD921

View file

@ -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: