From 67c45f3d5b0136e3a3959af921da2e07ff3bb0b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Wei=C3=9Fe?= <66256922+daniel-weisse@users.noreply.github.com> Date: Thu, 7 Jul 2022 11:28:12 +0200 Subject: [PATCH] CoreOS build pipeline fix (#256) * Remove invalid build step * Only upload Coordinator on main branch Signed-off-by: daniel-weisse --- .github/workflows/build-coordinator.yml | 2 ++ Dockerfile.build | 3 --- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-coordinator.yml b/.github/workflows/build-coordinator.yml index 659d218d5..84a1a9259 100644 --- a/.github/workflows/build-coordinator.yml +++ b/.github/workflows/build-coordinator.yml @@ -45,6 +45,8 @@ jobs: - name: Copy Coordinator to S3 if not exists id: copy + # Only upload the Coordinator if this action is triggered from main branch + if: ${{ github.ref == 'refs/heads/main' }} run: > aws s3api head-object --bucket ${{ secrets.PUBLIC_BUCKET_NAME }} --key coordinator/$(ls | grep "coordinator-") || ( diff --git a/Dockerfile.build b/Dockerfile.build index 871bf9bd0..dea91c75a 100644 --- a/Dockerfile.build +++ b/Dockerfile.build @@ -35,8 +35,5 @@ RUN go build -o disk-mapper -ldflags "-s -w" ./cmd/ FROM scratch AS coordinator COPY --from=build-coordinator /constellation/coordinator/coordinator / -FROM scratch AS coordinator-hashed -COPY --from=hash-coordinator /constellation/coordinator/coordinator-* / - FROM scratch AS disk-mapper COPY --from=build-disk-mapper /constellation/state/disk-mapper /