Skip to content

Commit

Permalink
use arm64 github runner for building arm image
Browse files Browse the repository at this point in the history
  • Loading branch information
rongxin-liu committed Apr 27, 2024
1 parent 3a4d69f commit fa490fd
Showing 1 changed file with 16 additions and 7 deletions.
23 changes: 16 additions & 7 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,9 @@
on: push

jobs:
build:
build-amd64:
runs-on: ubuntu-latest-64-cores
steps:
- name: Set up QEMU
uses: docker/setup-qemu-action@v2

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

- name: Log into Docker Hub
uses: docker/login-action@v2
with:
Expand Down Expand Up @@ -37,6 +32,20 @@ jobs:
run: |
docker push cs50/cli:amd64
build-arm64:
runs-on: ubuntu-latest-64-cores-arm
steps:
- name: Log into Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.11'

- name: Build for linux/arm64
uses: docker/build-push-action@v3
with:
Expand Down

0 comments on commit fa490fd

Please sign in to comment.