Skip to content

Commit

Permalink
chore(ci): 添加对构建arm64 docker镜像的支持 #19
Browse files Browse the repository at this point in the history
  • Loading branch information
nfe-w committed Jun 8, 2024
1 parent c284ac6 commit 37a95a4
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@ jobs:
- name: Checkout Repository
uses: actions/checkout@v3

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

- name: Setup Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Login to Docker Hub
uses: docker/[email protected]
with:
Expand All @@ -28,5 +34,4 @@ jobs:

- name: Build and Push Docker Image
run: |
docker build -t ${{ env.IMAGE_NAME }}:latest .
docker push ${{ env.IMAGE_NAME }}:latest
docker buildx build --push --platform linux/amd64,linux/arm64 -t ${{ env.IMAGE_NAME }}:latest .

0 comments on commit 37a95a4

Please sign in to comment.