tried again to fix #15
This commit is contained in:
@@ -7,15 +7,19 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
build-and-push:
|
build-and-push:
|
||||||
runs-on: docker-builder
|
runs-on: docker-builder
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Set up QEMU
|
- name: Enable QEMU for multi-arch builds
|
||||||
uses: actions/setup-qemu-action@v3
|
run: |
|
||||||
|
docker run --privileged --rm tonistiigi/binfmt --install all
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
- name: Create and use Docker Buildx builder
|
||||||
uses: actions/setup-buildx-action@v3
|
run: |
|
||||||
|
docker buildx create --name miauinv-builder --use || docker buildx use miauinv-builder
|
||||||
|
docker buildx inspect --bootstrap
|
||||||
|
|
||||||
- name: Log in to Gitea Container Registry
|
- name: Log in to Gitea Container Registry
|
||||||
run: |
|
run: |
|
||||||
@@ -23,13 +27,12 @@ jobs:
|
|||||||
--username "${{ secrets.REGISTRY_USER }}" \
|
--username "${{ secrets.REGISTRY_USER }}" \
|
||||||
--password-stdin
|
--password-stdin
|
||||||
|
|
||||||
- name: Build and push Docker image
|
- name: Build and push multi-arch Docker image
|
||||||
uses: docker/build-push-action@v6
|
run: |
|
||||||
with:
|
docker buildx build \
|
||||||
context: .
|
--platform linux/amd64,linux/arm64 \
|
||||||
file: ./Dockerfile
|
--file ./Dockerfile \
|
||||||
push: true
|
--tag git.miaurizius.de/${{ gitea.repository }}:latest \
|
||||||
platforms: linux/amd64,linux/arm64
|
--tag git.miaurizius.de/${{ gitea.repository }}:${{ gitea.event.release.tag_name }} \
|
||||||
tags: |
|
--push \
|
||||||
git.miaurizius.de/${{ gitea.repository }}:latest
|
.
|
||||||
git.miaurizius.de/${{ gitea.repository }}:${{ gitea.event.release.tag_name }}
|
|
||||||
Reference in New Issue
Block a user