Skip to content

Commit

Permalink
ci: 支持linux/amd64,linux/arm64和这两个架构的镜像构建
Browse files Browse the repository at this point in the history
  • Loading branch information
damingerdai committed Jul 23, 2024
1 parent 8df2f98 commit 06e8766
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/build-and-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v3
Expand All @@ -36,6 +38,8 @@ jobs:
tags: |
ghcr.io/damingerdai/hoteler:${{ github.sha }}
push: ${{ github.ref == 'refs/heads/master' }}
platforms: linux/amd64,linux/arm64
provenance: true

- name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}
Expand Down

0 comments on commit 06e8766

Please sign in to comment.