Skip to content

Commit

Permalink
fix: multiplatform support
Browse files Browse the repository at this point in the history
  • Loading branch information
akiyashkin-ronasit committed Jul 3, 2024
1 parent f3a9eb8 commit e58fe86
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/docker-build-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ jobs:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up QEMU
uses: docker/setup-qemu-action@v2

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

Expand All @@ -28,7 +31,7 @@ jobs:
with:
context: .
push: true
platforms: linux/arm64
platforms: linux/amd64,linux/arm64
tags: |
ghcr.io/ronasit/php-nginx-dev-wkhtmltopdf:latest
ghcr.io/ronasit/php-nginx-dev-wkhtmltopdf:${{ github.sha }}
Expand Down
5 changes: 2 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
FROM surnet/alpine-wkhtmltopdf:3.20.0-0.12.6-full as wkhtmltopdf
FROM webdevops/php-nginx-dev:8.3-alpine

FROM --platform=$BUILDPLATFORM surnet/alpine-wkhtmltopdf:3.20.0-0.12.6-full AS wkhtmltopdf
FROM --platform=$BUILDPLATFORM webdevops/php-nginx-dev:8.3-alpine

# wkhtmltopdf install dependencies
RUN apk add --no-cache \
Expand Down

0 comments on commit e58fe86

Please sign in to comment.