From d91e2e1da69376e3028be2082cb27e4e5fb222a5 Mon Sep 17 00:00:00 2001 From: rdash99 Date: Thu, 4 Jan 2024 15:10:24 +0000 Subject: [PATCH] ci: update PR CI to V5 --- .github/workflows/on-pr-update.yaml | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/.github/workflows/on-pr-update.yaml b/.github/workflows/on-pr-update.yaml index 99293bb..44d3457 100644 --- a/.github/workflows/on-pr-update.yaml +++ b/.github/workflows/on-pr-update.yaml @@ -37,21 +37,20 @@ jobs: # Build the container and push it as :pr-42 and :pr-42-fe45b3h needs: changes if: fromJSON(needs.changes.outputs.changes).hive-container == 'true' - uses: SwanseaUniversityMedical/workflows/.github/workflows/on-pr-update-container.yaml@v5.0.0 + uses: SwanseaUniversityMedical/workflows/.github/workflows/build-pr-container.yaml@v5.0.0 with: job-name: hive-container - container-registry: ${{ vars.HARBOR_REGISTRY }} - container-registry-user: ${{ vars.HARBOR_USER }} - container-registry-project: ${{ vars.HARBOR_PROJECT }} - container-registry-repo: ${{ vars.HARBOR_REPO }} + registry: ${{ vars.HARBOR_REGISTRY }} + registry-user: ${{ vars.HARBOR_USER }} + registry-repo: dare/hive cosign-public-key: ${{ vars.COSIGN_PUBLIC_KEY }} slack-channel: ${{ vars.SLACK_CHANNEL }} - build-command: | - docker build -t $IMAGE -f containers/hive/Dockerfile . + build-file: containers/hive/Dockerfile + build-context: . secrets: cosign-private-key: ${{ secrets.COSIGN_PRIVATE_KEY }} cosign-password: ${{ secrets.COSIGN_PASSWORD }} - container-registry-token: ${{ secrets.HARBOR_TOKEN }} + registry-token: ${{ secrets.HARBOR_TOKEN }} slack-token: ${{ secrets.SLACK_TOKEN }}