Skip to content

Commit

Permalink
build arm64 image
Browse files Browse the repository at this point in the history
  • Loading branch information
razumau committed Sep 19, 2024
1 parent 4107577 commit b90c8e6
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/build_image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ jobs:

steps:
- uses: actions/checkout@v4
- uses: docker/setup-qemu-action@v3
- uses: docker/setup-buildx-action@v3
- uses: docker/login-action@v3
with:
Expand All @@ -26,7 +27,7 @@ jobs:
- name: Create Dockerfile
run: |
cat << EOF > Dockerfile
FROM postgres:15
FROM --platform=\$BUILDPLATFORM postgres:15
RUN apt-get update && apt-get install -y wget
Expand Down Expand Up @@ -72,6 +73,9 @@ jobs:
- uses: docker/build-push-action@v6
with:
platforms: linux/amd64,linux/arm64
context: .
push: true
tags: ${{ env.DOCKER_REPOSITORY }}/${{ env.IMAGE_NAME }}:${{ steps.date.outputs.yesterday }}
tags: |
${{ env.DOCKER_REPOSITORY }}/${{ env.IMAGE_NAME }}:${{ steps.date.outputs.yesterday }}
${{ env.DOCKER_REPOSITORY }}/${{ env.IMAGE_NAME }}:latest

0 comments on commit b90c8e6

Please sign in to comment.