initial upload

This commit is contained in:
Ubuntu
2026-01-10 21:43:12 +00:00
commit c409145ced
7 changed files with 190 additions and 0 deletions

View File

@@ -0,0 +1,47 @@
name: Build and Push Docker Image
run-name: ${{ gitea.actor }} is building Docker Image 🚀
on:
push:
branches:
- main
tags:
- 'v*'
jobs:
build-push:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to Docker Registry
uses: docker/login-action@v2
with:
registry: ghcr.io # Oder deine eigene Registry (z.B. harbor.stabify.de)
username: ${{ secrets.REGISTRY_USERNAME }}
password: ${{ secrets.REGISTRY_PASSWORD }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v4
with:
images: ghcr.io/${{ gitea.repository }}
tags: |
type=ref,event=branch
type=ref,event=pr
type=semver,pattern={{version}}
type=sha
- name: Build and push Docker image
uses: docker/build-push-action@v4
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max