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",