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 /