Skip to content

Commit

Permalink
Deploy v1 services to new stage cluster (#2265)
Browse files Browse the repository at this point in the history
  • Loading branch information
hatemosphere authored and Deniallugo committed Jul 29, 2022
1 parent 797ae9e commit ce0b36b
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions .github/workflows/setup.runtime.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,7 @@ jobs:

steps:
- uses: actions/checkout@v2
-
name: Map runtime environment data
- name: Map runtime environment data
id: envMap
uses: kanga333/[email protected]
with:
Expand All @@ -77,32 +76,28 @@ jobs:
".*": {
"namespace": "${{ inputs.environment }}",
"hfEnv": "${{ inputs.environment }}",
"cluster": "stage"
"cluster": "stage-new" # TODO: rename new cluster to stage
},
"^rinkeby$": { "cluster": "testnet" },
"^ropsten$": { "cluster": "testnet" },
"^mainnet$": { "cluster": "mainnet", "hfEnv": "prod", "namespace": "zksync" }
}
-
run: echo "::set-output name=short::$(git rev-parse --short HEAD)"
- run: echo "::set-output name=short::$(git rev-parse --short HEAD)"
id: sha
-
name: Create GitHub Deployment
- name: Create GitHub Deployment
uses: chrnorm/deployment-action@releases/v1
id: deployment
if: inputs.create-deployment
with:
token: ${{ github.token }}
environment: ${{ inputs.environment }}
-
name: Match the tag vX.Y.Z-rN pattern
- name: Match the tag vX.Y.Z-rN pattern
uses: actions-ecosystem/action-regex-match@v2
id: regex
with:
text: ${{ github.ref }}
regex: '^(v\d+\.\d+\.\d+)(-r\d+)?$'
-
name: Find the latest config "-rN" tag
- name: Find the latest config "-rN" tag
uses: dysnix/find-latest-tag@v2
if: inputs.find-latest-config && steps.regex.outputs.match != ''
id: latest-config
Expand Down

0 comments on commit ce0b36b

Please sign in to comment.