mirror of
https://github.com/freedomofpress/dangerzone.git
synced 2025-04-28 18:02:38 +02:00
Get the tag from git before retagging it
This commit is contained in:
parent
4c78a0117c
commit
2235cb1b36
1 changed files with 2 additions and 1 deletions
|
@ -47,7 +47,8 @@ jobs:
|
|||
# Load the image with the final name directly
|
||||
gunzip -c share/container.tar.gz | podman load
|
||||
FINAL_IMAGE_NAME="${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}"
|
||||
podman tag dangerzone.rocks/dangerzone "$FINAL_IMAGE_NAME"
|
||||
TAG=$(git describe --long --first-parent | tail -c +2)
|
||||
podman tag dangerzone.rocks/dangerzone:$TAG "$FINAL_IMAGE_NAME"
|
||||
podman push "$FINAL_IMAGE_NAME" --digestfile=digest
|
||||
echo "digest=$(cat digest)" >> "$GITHUB_OUTPUT"
|
||||
|
||||
|
|
Loading…
Reference in a new issue