48 lines
1.4 KiB
YAML
48 lines
1.4 KiB
YAML
name: Container-Image veröffentlichen
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- "v*"
|
|
|
|
env:
|
|
REGISTRY: git.j-mahler.de
|
|
IMAGE_NAME: admin/domain-control-webinterface-prod
|
|
|
|
jobs:
|
|
container:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Repository auschecken
|
|
uses: actions/checkout@v4
|
|
|
|
- name: QEMU einrichten
|
|
uses: docker/setup-qemu-action@v3
|
|
|
|
- name: Docker Buildx einrichten
|
|
uses: docker/setup-buildx-action@v3
|
|
|
|
- name: An der Gitea Container Registry anmelden
|
|
uses: docker/login-action@v3
|
|
with:
|
|
registry: ${{ env.REGISTRY }}
|
|
username: ${{ secrets.REGISTRY_USERNAME }}
|
|
password: ${{ secrets.REGISTRY_TOKEN }}
|
|
|
|
- name: Versioniertes Image bauen und veröffentlichen
|
|
uses: docker/build-push-action@v6
|
|
with:
|
|
context: .
|
|
push: true
|
|
platforms: linux/amd64,linux/arm64
|
|
tags: |
|
|
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ gitea.ref_name }}
|
|
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:stable
|
|
labels: |
|
|
org.opencontainers.image.source=${{ gitea.server_url }}/${{ gitea.repository }}
|
|
org.opencontainers.image.revision=${{ gitea.sha }}
|
|
org.opencontainers.image.version=${{ gitea.ref_name }}
|
|
provenance: false
|
|
build-args: |
|
|
VERSION=${{ gitea.ref_name }}
|