undate Docker + workflows
Some checks failed
Build and Push Docker Image / build (push) Failing after 48s

This commit is contained in:
2025-11-19 14:27:38 +01:00
parent 37202aa2aa
commit b348d11764
4 changed files with 86 additions and 23 deletions

View File

@@ -0,0 +1,42 @@
name: Build and Push Docker Image
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Gitea Container Registry
uses: docker/login-action@v3
with:
registry: git.out.jafre.li
# ${{ gitea.actor }} ist der User, der den Push macht
username: ${{ gitea.actor }}
# ${{ secrets.GITHUB_TOKEN }} wird von Gitea automatisch bereitgestellt
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v5
with:
images: git.out.jafre.li/${{ gitea.repository }}
tags: |
type=raw,value=latest
type=sha,format=long
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}