Files
MiauInv/.gitea/workflows/release-docker.yaml
miaurizius 2dc854c65a
All checks were successful
test-and-lint / test-and-lint (pull_request) Successful in 4m12s
tried to fix #15
2026-06-10 03:42:31 +02:00

38 lines
1.1 KiB
YAML

name: Build and Push Docker Image on Release
on:
release:
types: [published]
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Enable QEMU for multi-arch builds
run: |
docker run --privileged --rm tonistiigi/binfmt --install all
- name: Create and use Docker Buildx builder
run: |
docker buildx create --name miauinv-builder --use || docker buildx use miauinv-builder
docker buildx inspect --bootstrap
- name: Log in to Gitea Container Registry
run: |
echo "${{ secrets.GITHUB_TOKEN }}" | docker login git.miaurizius.de \
--username "${{ gitea.actor }}" \
--password-stdin
- name: Build and push multi-arch Docker image
run: |
docker buildx build \
--platform linux/amd64,linux/arm64 \
--file ./Dockerfile \
--tag git.miaurizius.de/${{ gitea.repository }}:latest \
--tag git.miaurizius.de/${{ gitea.repository }}:${{ gitea.event.release.tag_name }} \
--push \
.