From 735374dd16ce024c4db0586aea0d5e523a3382b7 Mon Sep 17 00:00:00 2001 From: sbadiger Date: Wed, 12 Jul 2023 13:59:28 -0700 Subject: [PATCH 1/2] fix CI: setup docker-buildx Signed-off-by: sbadiger --- .github/workflows/ci.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 095906e1..cd0d409a 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -50,6 +50,12 @@ jobs: name: codecov-umbrella # optional fail_ci_if_error: true # optional (default = false) + - name: Set up Docker Buildx + id: buildx + uses: docker/setup-buildx-action@v2 + with: + install: true + - name: Docker build if: github.event_name == 'pull_request' || (github.repository != 'keikoproj/upgrade-manager' && github.event_name == 'push') run: make docker-build From b83299e1114ab1c63392db10a046372ea668de2e Mon Sep 17 00:00:00 2001 From: sbadiger Date: Wed, 12 Jul 2023 14:27:50 -0700 Subject: [PATCH 2/2] setup buildx only for main repo and build/release events Signed-off-by: sbadiger --- .github/workflows/ci.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index cd0d409a..e1e9a66d 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -51,6 +51,7 @@ jobs: fail_ci_if_error: true # optional (default = false) - name: Set up Docker Buildx + if: (github.event_name == 'push' || github.event_name == 'release') && github.repository == 'keikoproj/upgrade-manager' id: buildx uses: docker/setup-buildx-action@v2 with: