From 7aab0d1a6dbe5cfd779c9cb3937db8fbff7f9b88 Mon Sep 17 00:00:00 2001 From: Dome Date: Wed, 8 Apr 2026 08:51:06 +0200 Subject: [PATCH] Update docker-image.yml --- .github/workflows/docker-image.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 6078ce7..23246b7 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -1,7 +1,7 @@ name: Build and Push Matrix-to Docker Image on: - workflow_dispatch: # Erlaubt den manuellen Start über das GitHub UI + workflow_dispatch: # Manueller Start jobs: build: @@ -20,10 +20,16 @@ jobs: username: ${{ secrets.DOCKER_USERNAME }} password: ${{ secrets.DOCKER_PASSWORD }} + - name: Generate Timestamp Tag + id: vars + run: echo "sha_short=$(date +%Y%m%d-%H%M)" >> $GITHUB_OUTPUT + - name: Build and push Docker image uses: docker/build-push-action@v2 with: context: . push: true - tags: domoel/matrix-to:latest + tags: | + domoel/matrix-to:latest + domoel/matrix-to:${{ steps.vars.outputs.sha_short }} no-cache: true