Skip to content

Commit

Permalink
build on macos arm64
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesxu123 committed Mar 4, 2024
1 parent 3bfef1e commit e6c915c
Showing 1 changed file with 21 additions and 7 deletions.
28 changes: 21 additions & 7 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
branches: ["main"]

jobs:
push_to_registry:
push_to_registry_amd64:
name: Push Docker image to Docker Hub
runs-on: ubuntu-latest
steps:
Expand All @@ -20,11 +20,26 @@ jobs:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

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

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build and push Docker image
uses: docker/build-push-action@3b5e8027fcad23fda98b2e3ac259d8d67585f671
with:
context: .
file: ./Dockerfile
push: true
tags: hackduke/blueride-mailer:latest

push_to_registry_arm64:
name: Push Docker image to Docker Hub
runs-on: macos-14
steps:
- name: Check out the repo
uses: actions/checkout@v4

- name: Log in to Docker Hub
uses: docker/login-action@f4ef78c080cd8ba55a85445d5b36e214a81df20a
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Build and push Docker image
uses: docker/build-push-action@3b5e8027fcad23fda98b2e3ac259d8d67585f671
Expand All @@ -33,4 +48,3 @@ jobs:
file: ./Dockerfile
push: true
tags: hackduke/blueride-mailer:latest
platforms: linux/amd64,linux/arm64

0 comments on commit e6c915c

Please sign in to comment.