changed actions to only run build on tag
All checks were successful
GoLang Tests / Run Go Tests (push) Successful in 31s

This commit is contained in:
2025-09-04 10:13:59 +02:00
parent 0af65f52f3
commit 871d44a237
2 changed files with 40 additions and 25 deletions

View File

@@ -0,0 +1,39 @@
name: Arbeitszeitmessung Deploy
run-name: ${{ gitea.actor }} is building and deploying arbeitszeitmesssung
on:
push:
branches:
- "main"
tags:
- "*"
workflow_run:
workflows: [tests]
types:
- completed
jobs:
build:
name: Build Go Image and Upload
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: git.letsstein.de
username: ${{ gitea.actor }}
password: ${{ secrets.REGISTRY_TOKEN }}
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build and push
uses: docker/build-push-action@v6
with:
platforms: linux/amd64,linux/arm64
push: true
context: Backend
tags: |
git.letsstein.de/tom/arbeitszeitmessung:latest
git.letsstein.de/tom/arbeitszeitmessung:${{ github.ref_name }}