Skip to content

Commit

Permalink
Docker multi-arch images push for linux/amd64, linux/arm64 (#338)
Browse files Browse the repository at this point in the history

---------

Co-authored-by: Salman Nawaz <[email protected]>
  • Loading branch information
salman2013 and Salman Nawaz authored Aug 18, 2023
1 parent 4e60397 commit 09e2a67
Showing 1 changed file with 18 additions and 3 deletions.
21 changes: 18 additions & 3 deletions .github/workflows/push-docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,22 +28,37 @@ jobs:
return tagName;
result-encoding: string

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

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

- name: Login to DockerHub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}

- name: Build and push Dev Docker image
uses: docker/build-push-action@v1
uses: docker/build-push-action@v4

with:
push: true
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
target: dev
repository: openedx/edx-notes-api-dev
tags: ${{ steps.get-tag-name.outputs.result }},${{ github.sha }}
platforms: linux/amd64,linux/arm64

# - name: Build and push prod Docker image
# uses: docker/build-push-action@v1
# uses: docker/build-push-action@v4
# with:
# push: true
# username: ${{ secrets.DOCKERHUB_USERNAME }}
# password: ${{ secrets.DOCKERHUB_PASSWORD }}
# target: prod
# repository: openedx/edx-notes-api
# tags: ${{ steps.get-tag-name.outputs.result }},${{ github.sha }}
# tags: ${{ steps.get-tag-name.outputs.result }},${{ github.sha }}
# platforms: linux/amd64,linux/arm64

0 comments on commit 09e2a67

Please sign in to comment.