fixed tagging

Signed-off-by: Stephan Richter <s.richter@srsoftware.de>
This commit is contained in:
2026-01-03 22:17:30 +01:00
parent bd95c3d0c4
commit 8d2f3ef88e
2 changed files with 20 additions and 20 deletions

View File

@@ -19,12 +19,13 @@ jobs:
- name: Store tag date
run: |
echo $(date +%Y%m%d_%H%M)_${{ gitea.ref_name }} > /tmp/tag
TAG=$(date +%Y%m%d_%H%M)_${{ gitea.ref_name }}
echo $TAG > /tmp/tag
echo Using '"'$TAG'"' as tag.
- name: Tag image for upload
run: |
TAG=$(cat /tmp/tag)
echo using '"'$TAG'"' as tag
docker tag umbrella ${{ secrets.REGISTRY_PATH }}/umbrella:${{ gitea.ref_name }}
docker tag umbrella ${{ secrets.REGISTRY_PATH }}/umbrella:$TAG
@@ -38,6 +39,5 @@ jobs:
- name: Push to registry
run: |
TAG=$(cat /tmp/tag)
echo using '"'$TAG'"' as tag
docker push ${{ secrets.REGISTRY_PATH }}/umbrella:${{ gitea.ref_name }}
docker push ${{ secrets.REGISTRY_PATH }}/umbrella:$TAG