Map git tags to docker tags.
This commit is contained in:
parent
7864738448
commit
5fc0c79bbd
1 changed files with 3 additions and 0 deletions
|
@ -36,6 +36,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:
|
||||||
|
|
Loading…
Reference in a new issue