CoreOS build pipeline fix (#256)

* Remove invalid build step

* Only upload Coordinator on main branch

Signed-off-by: daniel-weisse <dw@edgeless.systems>
This commit is contained in:
Daniel Weiße 2022-07-07 11:28:12 +02:00 committed by GitHub
parent 4f536c083d
commit 67c45f3d5b
2 changed files with 2 additions and 3 deletions

View File

@ -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-")
|| (

View File

@ -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 /