From 5696e6c7ca43ea29f54b23eb8a919430e5ec1edf Mon Sep 17 00:00:00 2001 From: Puja Deep <105225025+PujaVad@users.noreply.github.com> Date: Fri, 10 May 2024 11:49:10 +0530 Subject: [PATCH 1/2] Revert docker/build-push-action version due to known issue Version 5 of docker/build-push-action produces `unknown` architecture and os in manifest --- .github/workflows/build-test-publish.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-test-publish.yml b/.github/workflows/build-test-publish.yml index 4266c595..4b4d29e7 100644 --- a/.github/workflows/build-test-publish.yml +++ b/.github/workflows/build-test-publish.yml @@ -94,7 +94,7 @@ jobs: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} - name: Build and push - uses: docker/build-push-action@v5 + uses: docker/build-push-action@v3 with: context: . push: true @@ -113,7 +113,7 @@ jobs: type=semver,pattern={{version}},suffix=-amd64,latest=false type=sha,suffix=-amd64,latest=false - name: Build and push single-arch amd64 image - uses: docker/build-push-action@v5 + uses: docker/build-push-action@v3 with: context: . platforms: linux/amd64 @@ -132,7 +132,7 @@ jobs: type=semver,pattern={{version}},suffix=-arm64,latest=false type=sha,suffix=-arm64,latest=false - name: Build and push single-arch arm64 image - uses: docker/build-push-action@v5 + uses: docker/build-push-action@v3 with: context: . platforms: linux/arm64 From dff2bfe17c9ee054138f53033524a83da03b5f50 Mon Sep 17 00:00:00 2001 From: Puja Deep <105225025+PujaVad@users.noreply.github.com> Date: Fri, 10 May 2024 14:30:09 +0530 Subject: [PATCH 2/2] Comment added to prevent future bumps of docker/build-push-action --- .github/workflows/build-test-publish.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/build-test-publish.yml b/.github/workflows/build-test-publish.yml index 4b4d29e7..ac9461b9 100644 --- a/.github/workflows/build-test-publish.yml +++ b/.github/workflows/build-test-publish.yml @@ -94,6 +94,7 @@ jobs: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} - name: Build and push + # Do not bump below action version (Known issue - https://github.com/docker/build-push-action/issues/820) uses: docker/build-push-action@v3 with: context: . @@ -113,6 +114,7 @@ jobs: type=semver,pattern={{version}},suffix=-amd64,latest=false type=sha,suffix=-amd64,latest=false - name: Build and push single-arch amd64 image + # Do not bump below action version (Known issue - https://github.com/docker/build-push-action/issues/820) uses: docker/build-push-action@v3 with: context: . @@ -132,6 +134,7 @@ jobs: type=semver,pattern={{version}},suffix=-arm64,latest=false type=sha,suffix=-arm64,latest=false - name: Build and push single-arch arm64 image + # Do not bump below action version (Known issue - https://github.com/docker/build-push-action/issues/820) uses: docker/build-push-action@v3 with: context: .