From 7a3c8d0071324491d69adf8c8b6035f440eb6bf7 Mon Sep 17 00:00:00 2001 From: Juansecu Date: Sat, 11 May 2024 17:21:15 -0500 Subject: [PATCH] CI - Modify Push Docker Image action to build and push Docker image to linux/amd64 and linux/arm64 architectures --- .github/workflows/push-docker-image.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/push-docker-image.yml b/.github/workflows/push-docker-image.yml index 5ac3592..13c749c 100644 --- a/.github/workflows/push-docker-image.yml +++ b/.github/workflows/push-docker-image.yml @@ -10,6 +10,11 @@ jobs: runs-on: ubuntu-latest permissions: contents: read + strategy: + matrix: + platforms: + - linux/amd64 + - linux/arm64 steps: - uses: actions/checkout@v4 - name: Retrieve major version @@ -28,5 +33,6 @@ jobs: with: context: . file: ./Dockerfile + platforms: ${{ matrix.platforms }} push: true tags: ${{ secrets.DOCKERHUB_REPOSITORY }}:${{ github.ref_name }},${{ secrets.DOCKERHUB_REPOSITORY }}:${{ steps.split.outputs._0 }},${{ secrets.DOCKERHUB_REPOSITORY }}:latest