Add tags to pipeline config.
This commit is contained in:
parent
9c2c8b9b09
commit
37efbb26ab
1 changed files with 4 additions and 0 deletions
|
@ -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:
|
||||||
|
|
Reference in a new issue