Skip to content

Commit

Permalink
fix: multi-arch builds
Browse files Browse the repository at this point in the history
  • Loading branch information
Justintime50 committed Dec 12, 2024
1 parent ce61e79 commit e3b7c9e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,8 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: docker/setup-qemu-action@v3
- uses: docker/setup-buildx-action@v3
- name: Sign into Docker
run: echo ${{ secrets.DOCKER_PASSWORD }} | docker login -u ${{ secrets.DOCKER_USERNAME }} --password-stdin
- name: Build Docker image
run: docker build -t justintime50/glass:${GITHUB_REF##*/v} --build-arg PROD=true --platform linux/amd64,linux/arm64 .
- name: Push image to Registry
run: docker push justintime50/glass:${GITHUB_REF##*/v}
- name: Build Docker image and push to Docker Hub
run: docker buildx build --push -t justintime50/glass:${GITHUB_REF##*/v} --build-arg PROD=true --platform linux/amd64,linux/arm64 .
5 changes: 2 additions & 3 deletions .github/workflows/latest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,8 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: docker/setup-qemu-action@v3
- uses: docker/setup-buildx-action@v3
- name: Sign into Docker
run: echo ${{ secrets.DOCKER_PASSWORD }} | docker login -u ${{ secrets.DOCKER_USERNAME }} --password-stdin
- name: Build latest Docker image and push to Docker Hub
run: docker build -t justintime50/glass --build-arg PROD=true --platform linux/amd64,linux/arm64 .
- name: Push image to Registry
run: docker push justintime50/glass
run: docker buildx build --push -t justintime50/glass --build-arg PROD=true --platform linux/amd64,linux/arm64 .

0 comments on commit e3b7c9e

Please sign in to comment.