forked from MystenLabs/sui
-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (44 loc) · 1.83 KB
/
trigger-builds.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: Trigger builds for images and binaries
on:
workflow_dispatch:
push:
branches:
- 'devnet'
- 'testnet'
- 'mainnet'
- 'releases/sui-*-release'
concurrency: ${{ github.workflow }}-${{ github.ref }}
jobs:
docker-images:
runs-on: ubuntu-latest
if: ${{ !contains(github.ref, 'sui-graphql-rpc') }}
steps:
- name: Dispatch Docker Builds in MystenLabs/sui-operations
uses: peter-evans/repository-dispatch@ff45666b9427631e3450c54a1bcbee4d9ff4d7c0 # [email protected]
with:
repository: MystenLabs/sui-operations
token: ${{ secrets.DOCKER_BINARY_BUILDS_DISPATCH }}
event-type: build-docker-images
client-payload: '{"sui_commit": "${{ github.sha }}", "docker_hub_tag": "${{ github.ref }}"}'
release-binaries:
runs-on: ubuntu-latest
if: ${{ !contains(github.ref, 'sui-graphql-rpc') }}
steps:
- name: Dispatch Release binaries builds in MystenLabs/sui-operations
uses: peter-evans/repository-dispatch@ff45666b9427631e3450c54a1bcbee4d9ff4d7c0 # [email protected]
with:
repository: MystenLabs/sui-operations
token: ${{ secrets.DOCKER_BINARY_BUILDS_DISPATCH }}
event-type: build-release-binaries
client-payload: '{"sui_commit": "${{ github.sha }}"}'
graphql-artifacts:
runs-on: ubuntu-latest
if: ${{ contains(github.ref, 'sui-graphql-rpc') }}
steps:
- name: Dispatch GraphQl artifact builds in MystenLabs/sui-operations
uses: peter-evans/repository-dispatch@ff45666b9427631e3450c54a1bcbee4d9ff4d7c0 # [email protected]
with:
repository: MystenLabs/sui-operations
token: ${{ secrets.DOCKER_BINARY_BUILDS_DISPATCH }}
event-type: build-graphql-artifacts
client-payload: '{"sui_commit": "${{ github.sha }}", "docker_hub_tag": "${{ github.ref }}"}'