From 5967d96227193e2bb194ba0c621e65b30866af95 Mon Sep 17 00:00:00 2001 From: Frank Hamand Date: Thu, 8 Aug 2024 17:36:26 +0100 Subject: [PATCH] fix: fix replay capture deploy job (#24269) --- .../workflows/vector-docker-build-deploy.yml | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/.github/workflows/vector-docker-build-deploy.yml b/.github/workflows/vector-docker-build-deploy.yml index a095783f65c7c..44b86c24cd22a 100644 --- a/.github/workflows/vector-docker-build-deploy.yml +++ b/.github/workflows/vector-docker-build-deploy.yml @@ -18,6 +18,9 @@ jobs: contents: read # allow reading the repo contents packages: write # allow push to ghcr.io + outputs: + digest: ${{ steps.docker_build.outputs.digest }} + defaults: run: working-directory: vector/ @@ -70,10 +73,18 @@ jobs: labels: ${{ steps.meta.outputs.labels }} platforms: linux/arm64 - - name: Container image digest - run: echo ${{ steps.docker_build.outputs.digest }} + deploy: + runs-on: ubuntu-latest + needs: build + steps: + - name: get deployer token + id: deployer + uses: getsentry/action-github-app-token@v3 + with: + app_id: ${{ secrets.DEPLOYER_APP_ID }} + private_key: ${{ secrets.DEPLOYER_APP_PRIVATE_KEY }} - - name: Trigger replay capture deployment + - name: Trigger livestream deployment uses: peter-evans/repository-dispatch@v3 with: token: ${{ steps.deployer.outputs.token }} @@ -83,7 +94,7 @@ jobs: { "values": { "image": { - "sha": "${{ steps.docker_build.outputs.digest }}" + "sha": "${{ needs.build.outputs.digest }}" } }, "release": "replay-capture-vector",