Skip to content

Commit

Permalink
fix: fix replay capture deploy job (#24269)
Browse files Browse the repository at this point in the history
  • Loading branch information
frankh authored Aug 8, 2024
1 parent b170c09 commit 5967d96
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions .github/workflows/vector-docker-build-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/
Expand Down Expand Up @@ -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 }}
Expand All @@ -83,7 +94,7 @@ jobs:
{
"values": {
"image": {
"sha": "${{ steps.docker_build.outputs.digest }}"
"sha": "${{ needs.build.outputs.digest }}"
}
},
"release": "replay-capture-vector",
Expand Down

0 comments on commit 5967d96

Please sign in to comment.