-
Notifications
You must be signed in to change notification settings - Fork 1
36 lines (33 loc) · 1.05 KB
/
deploy-prod.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
name: Deploy Mainnet
on:
workflow_dispatch:
inputs:
tag:
description: 'Tag'
required: true
type: string
env:
RUST_TOOLCHAIN: stable
jobs:
deploy:
runs-on: ubuntu-latest
environment: mainnet
steps:
- uses: actions/github-script@v6
with:
github-token: ${{ secrets.CROSSREPOTRIGGER }}
script: |
let params = {
owner: "metaplex-foundation",
repo: "read-api-deployment"
};
let release = await github.rest.repos.getReleaseByTag({owner: "metaplex-foundation", repo: "digital-asset-rpc-infrastructure", tag: "${{ inputs.tag }}"});
await github.rest.repos.createDispatchEvent(Object.assign({
event_type: "deploy_trigger",
client_payload: {
DEPLOY_VERSION: "${{ inputs.tag }}",
DEPLOY_ENV: "mainnet",
DEPLOY_K8S_NAMESPACE: "mainnet-read-api",
DEPLOY_K8S_CLUSTER: "metaplex-prod-001",
}
}, params));