Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 19 additions & 9 deletions .github/workflows/controller-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,24 @@ on:
- .github/workflows/controller-build.yaml
workflow_dispatch:

concurrency:
group: build-publish-controller
cancel-in-progress: true

jobs:
call-build-publish-controller:
dispatch:
if: github.event_name == 'workflow_dispatch' || github.event.pull_request.merged == true
uses: perftool-incubator/crucible/.github/workflows/build-publish-controller.yaml@master
with:
ci_target: "multiplex"
secrets: inherit
runs-on: ubuntu-latest
steps:
- name: Generate app token
id: app-token
uses: actions/create-github-app-token@v1
with:
app-id: ${{ vars.APP_ID__CRUCIBLE_WORKFLOW_DISPATCH }}
private-key: ${{ secrets.PRIVATE_KEY__CRUCIBLE_WORKFLOW_DISPATCH }}
owner: perftool-incubator
repositories: crucible

- name: Dispatch controller build
run: |
curl -s -X POST \
-H "Authorization: Bearer ${{ steps.app-token.outputs.token }}" \
-H "Accept: application/vnd.github+json" \
"https://api.github.com/repos/perftool-incubator/crucible/dispatches" \
-d '{"event_type":"controller-build","client_payload":{"ci_target":"multiplex"}}'
Loading