Skip to content

Commit

Permalink
add dispatch (#5667)
Browse files Browse the repository at this point in the history
  • Loading branch information
ypoplavs authored Jul 19, 2024
1 parent 4e3477f commit 565b4e7
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/sandbox.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -776,3 +776,34 @@ jobs:
- name: Push Docker images
run: |
docker push kubeshop/testkube-sandbox:${{ matrix.service }}-${{ env.branch_identifier }}-${{ steps.commit.outputs.short }}
dispatch:
needs:
[
api,
single_executor,
executor_jmeter,
executor_maven,
executor_gradle,
executor_cypress,
executor_cypress_manifest,
executor_playwright,
log_server_sidecar,
testworkflow
]
runs-on: ubuntu-latest
steps:
- uses: actions/create-github-app-token@v1
id: app-token
with:
app-id: ${{ secrets.APP_ID }}
private-key: ${{ secrets.PRIVATE_KEY }}
owner: ${{ github.repository_owner }}

- name: Repository dispatch
uses: peter-evans/repository-dispatch@v2
with:
token: ${{ steps.app-token.outputs.token }}
repository: kubeshop/testkube-deployment
event-type: sandbox_image_update
client-payload: '{"ref_name": "${{ github.ref_name }}"}'

0 comments on commit 565b4e7

Please sign in to comment.