forked from matter-labs/zksync
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Deploy v1 services to new stage cluster (#2265)
- Loading branch information
1 parent
797ae9e
commit ce0b36b
Showing
1 changed file
with
6 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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: | ||
|
@@ -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 | ||
|