Skip to content

Commit

Permalink
Merge pull request #46 from ewdurbin/arm64_images
Browse files Browse the repository at this point in the history
build/publish arm64 docker images
  • Loading branch information
nateprewitt authored Aug 8, 2024
2 parents f3161bf + d790ed9 commit e32f993
Showing 1 changed file with 18 additions and 11 deletions.
29 changes: 18 additions & 11 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,25 +59,32 @@ jobs:
name: requirements.txt
- name: Check file contents
run: cat requirements.txt
- name: Build Image
run: >
docker build
--build-arg "APP_VERSION=${APP_VERSION}"
--build-arg "APP_DESC=${APP_DESC}"
-t "ghcr.io/${GITHUB_REPOSITORY}:${APP_VERSION}"
-t "ghcr.io/${GITHUB_REPOSITORY}:latest"
.
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
with:
platforms: 'arm64'
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to GHCR
if: startsWith(github.ref, 'refs/tags/release-')
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Push Docker Image
- name: Build and Push Docker Images
if: startsWith(github.ref, 'refs/tags/release-')
run: |
docker push "ghcr.io/${GITHUB_REPOSITORY}:${APP_VERSION}"
uses: docker/build-push-action@v6
with:
context: .
platforms: linux/amd64,linux/arm64
push: true
build-args: |
APP_VERSION=${{ env.APP_VERSION }}
APP_DESC=${{ env.APP_DESC }}
tags: |
ghcr.io/${{ github.repository }}:${{ env.APP_VERSION }}
ghcr.io/${{ github.repository }}:latest
pypi-publish:
needs: [unit-tests]
if: startsWith(github.ref, 'refs/tags/release-')
Expand Down

0 comments on commit e32f993

Please sign in to comment.