Files
2026-04-08 15:49:04 +02:00

36 lines
889 B
YAML

name: Build and Push Matrix-to Docker Image
on:
workflow_dispatch: # Manueller Start
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Log in to Docker Hub
uses: docker/login-action@v1
with:
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
domoel/matrix-to:${{ steps.vars.outputs.sha_short }}
no-cache: true