Files
arbeitszeitmessung/.gitea/workflows/build-deploy.yaml
Tom Tröger 871d44a237
All checks were successful
GoLang Tests / Run Go Tests (push) Successful in 31s
changed actions to only run build on tag
2025-09-04 10:14:05 +02:00

40 lines
1.1 KiB
YAML

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 }}