From 04976a75ac95b6592ace3c9cb5038a9cfbcf1eee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gon=C3=A7alo=20Heleno?= <33546359+lentidas@users.noreply.github.com> Date: Mon, 4 Dec 2023 16:10:09 +0100 Subject: [PATCH] ci: fix pipeline and put platforms variable on the correct place (#19) --- .github/workflows/builder.yaml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/builder.yaml b/.github/workflows/builder.yaml index 962f0c6..70300f3 100644 --- a/.github/workflows/builder.yaml +++ b/.github/workflows/builder.yaml @@ -33,14 +33,13 @@ jobs: - name: "Set up Docker Buildx" uses: docker/setup-buildx-action@v3 - with: - platforms: "linux/amd64,linux/arm64" - + - name: "Build and eventually push container image" uses: docker/build-push-action@v5 with: context: . file: ./Dockerfile + platforms: linux/amd64,linux/arm64 tags: ${{ steps.metadata_extraction.outputs.tags }} labels: ${{ steps.metadata_extraction.outputs.labels }} push: ${{ github.event_name == 'push' && github.ref_type == 'tag' }} # Only push builded image if we push a tag