Update docker-image.yml

This commit is contained in:
Dome
2026-04-08 08:51:06 +02:00
committed by GitHub
parent b86b69d171
commit 7aab0d1a6d
+8 -2
View File
@@ -1,7 +1,7 @@
name: Build and Push Matrix-to Docker Image name: Build and Push Matrix-to Docker Image
on: on:
workflow_dispatch: # Erlaubt den manuellen Start über das GitHub UI workflow_dispatch: # Manueller Start
jobs: jobs:
build: build:
@@ -20,10 +20,16 @@ jobs:
username: ${{ secrets.DOCKER_USERNAME }} username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }} 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 - name: Build and push Docker image
uses: docker/build-push-action@v2 uses: docker/build-push-action@v2
with: with:
context: . context: .
push: true push: true
tags: domoel/matrix-to:latest tags: |
domoel/matrix-to:latest
domoel/matrix-to:${{ steps.vars.outputs.sha_short }}
no-cache: true no-cache: true