Update .github/workflows/docker-build-push-dockerhub.yml
Some checks failed
Build and push image to DockerHub / build (push) Has been cancelled

This commit is contained in:
2025-05-31 13:55:56 +00:00
parent f1971aae35
commit 3f405451b8

View File

@@ -93,8 +93,8 @@ jobs:
eval $(sed -e '/^#/d' -e 's/^/export /' -e 's/$/;/' .env) ; eval $(sed -e '/^#/d' -e 's/^/export /' -e 's/$/;/' .env) ;
# Temporarily disable ARM build due to runner performance issues # Temporarily disable ARM build due to runner performance issues
# - name: Set up QEMU - name: Set up QEMU
# uses: docker/setup-qemu-action@v2 uses: docker/setup-qemu-action@v3 # Updated to v3 for latest features/fixes
- name: Start database - name: Start database
run: | run: |
@@ -107,9 +107,9 @@ jobs:
network=container:database network=container:database
buildkitd-flags: | buildkitd-flags: |
--allow-insecure-entitlement security.insecure --allow-insecure-entitlement network.host --allow-insecure-entitlement security.insecure --allow-insecure-entitlement network.host
# config-inline: | # config-inline: |
# [worker.oci] # [worker.oci]
# max-parallelism = 1 # max-parallelism = 1
- name: Build image - name: Build image
id: docker_build id: docker_build
@@ -118,8 +118,8 @@ jobs:
context: ./ context: ./
file: ./Dockerfile file: ./Dockerfile
load: true # Load the image into the Docker daemon load: true # Load the image into the Docker daemon
push: false # Do not push the image at this stage push: false # Do not push the image at this stage
platforms: linux/amd64 platforms: linux/arm64 # Changed from linux/amd64
tags: ${{ steps.meta.outputs.tags }} tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }} labels: ${{ steps.meta.outputs.labels }}
build-args: | build-args: |
@@ -179,7 +179,7 @@ jobs:
context: ./ context: ./
file: ./Dockerfile file: ./Dockerfile
push: true push: true
platforms: linux/amd64 platforms: linux/arm64 # Changed from linux/amd64
tags: ${{ steps.meta.outputs.tags }} tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }} labels: ${{ steps.meta.outputs.labels }}
build-args: | build-args: |
@@ -196,4 +196,4 @@ jobs:
- name: Cleanup - name: Cleanup
run: | run: |
docker compose down docker compose down