From b36dcfb79ff716d4325c3f82fc60463ed5d0ab15 Mon Sep 17 00:00:00 2001 From: Jon Perry Date: Wed, 20 Apr 2022 05:30:46 +0000 Subject: [PATCH] fix path to rust injector in workflow --- .github/workflows/build-rust-injector.yml | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build-rust-injector.yml b/.github/workflows/build-rust-injector.yml index 59635c14fe..3a9e66ac9a 100644 --- a/.github/workflows/build-rust-injector.yml +++ b/.github/workflows/build-rust-injector.yml @@ -1,4 +1,8 @@ name: Build Rust Binary + +env: + zarfInjectorPath: 'src/injector/stage1/target/x86_64-unknown-linux-musl/release/zarf-injector' + on: workflow_dispatch: inputs: @@ -29,13 +33,13 @@ jobs: args: cargo build --target x86_64-unknown-linux-musl --release --manifest-path src/injector/stage1/Cargo.toml - name: "Strip The Binary Down" - run: sudo strip src/injector/stage1/target/x86_64-unknown-linux-musl/release/zarf-injector + run: sudo strip ${{ env.zarfInjectorPath }} - name: "Upload Rust Binary" uses: actions/upload-artifact@v2 with: name: zarf-injector - path: src/injector/stage1/target/x86_64-unknown-linux-musl/release/zarf-injector + path: ${{ env.zarfInjectorPath }} - name: Login to Docker Hub uses: docker/login-action@v1 @@ -44,9 +48,10 @@ jobs: password: ${{ secrets.DOCKERHUB_TOKEN }} - name: "Upload Binary To DockerHub" - run: cosign upload blob -f zarf-injector defenseunicorns/zarf-injector:${{ github.event.inputs.versionTag }} + run: cosign upload blob -f ${{ env.zarfInjectorPath }} defenseunicorns/zarf-injector:${{ github.event.inputs.versionTag }} - - name: "Sign the binary" - run: cosign sign --key ${{ secrets.COSIGN_SIGNING_KEY }} defenseunicorns/zarf-injector:${{ github.event.inputs.versionTag }} - env: - COSIGN_EXPERIMENTAL: 1 + # TODO: sign with an awskms key + # - name: "Sign the binary" + # run: cosign sign --key ${{ secrets.COSIGN_SIGNING_KEY }} defenseunicorns/zarf-injector:${{ github.event.inputs.versionTag }} + # env: + # COSIGN_EXPERIMENTAL: 1