wth i stupid
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 12s

This commit is contained in:
2026-01-19 23:17:02 +01:00
parent 7edead58bd
commit 0b7db03ef1

View File

@@ -34,18 +34,18 @@ jobs:
SHORT_HASH: ${{ github.sha }}
run: |
# Build the image with the commit hash tag
docker build --build-arg BUILD_IDENTIFIER=${SHORT_HASH:0:5} -t git.govekar.net/lovrog05/glm-host:${BRANCH_NAME}-${SHORT_HASH:0:5} .
docker build --build-arg BUILD_IDENTIFIER=${SHORT_HASH:0:5} -t git.govekar.net/lovrog05/gif:${BRANCH_NAME}-${SHORT_HASH:0:5} .
# Tag the same image as "latest"
docker tag git.govekar.net/lovrog05/glm-host:${BRANCH_NAME}-${SHORT_HASH:0:5} git.govekar.net/lovrog05/glm-host:${BRANCH_NAME}-latest
docker tag git.govekar.net/lovrog05/gif:${BRANCH_NAME}-${SHORT_HASH:0:5} git.govekar.net/lovrog05/gif:${BRANCH_NAME}-latest
- name: Push Docker Images
env:
BRANCH_NAME: ${{ github.ref_name }}
SHORT_HASH: ${{ github.sha }}
run: |
docker push git.govekar.net/lovrog05/glm-host:${BRANCH_NAME}-${SHORT_HASH:0:5}
docker push git.govekar.net/lovrog05/glm-host:${BRANCH_NAME}-latest
docker push git.govekar.net/lovrog05/gif:${BRANCH_NAME}-${SHORT_HASH:0:5}
docker push git.govekar.net/lovrog05/gif:${BRANCH_NAME}-latest
- name: Log out from registry
if: always()