Add tags to pipeline config.

This commit is contained in:
redxef 2022-03-09 17:43:31 +01:00
parent 9c2c8b9b09
commit 37efbb26ab
Signed by: redxef
GPG key ID: 7DAC3AA211CBD921

View file

@ -5,6 +5,7 @@ resources:
source: source:
uri: https://gitea.redxef.at/redxef/concourse-buildkit uri: https://gitea.redxef.at/redxef/concourse-buildkit
branch: master branch: master
fetch_tags: true
- name: upstream-image - name: upstream-image
type: registry-image type: registry-image
source: source:
@ -36,6 +37,9 @@ jobs:
- | - |
#!/usr/bin/env sh #!/usr/bin/env sh
git rev-parse --short HEAD > docker-tags/tags.txt 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 - task: build
privileged: true privileged: true
config: config: