Skip to content

Commit

Permalink
fix runner choice in deploy-apps workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
dennybaa committed Mar 24, 2021
1 parent 50c899e commit e405798
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions .github/workflows/deploy-apps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,26 +29,31 @@ jobs:
{
"mainnet": {
"KUBECONF": "KUBECONF_MAINNET",
"HFENV": "zksync-prod"
"HFENV": "zksync-prod",
"RUNNER": "mainnet"
},
"rinkeby": {
"KUBECONF": "$KUBECONF_TESTNET",
"HFENV": "zksync-${{ github.event.deployment.environment }}"
"HFENV": "zksync-${{ github.event.deployment.environment }}",
"RUNNER": "testnet"
},
"ropsten": {
"KUBECONF": "$KUBECONF_TESTNET",
"HFENV": "zksync-${{ github.event.deployment.environment }}"
"HFENV": "zksync-${{ github.event.deployment.environment }}",
"RUNNER": "testnet"
},
".*": {
"KUBECONF": "KUBECONF_STAGE",
"HFENV": "zksync-${{ github.event.deployment.environment }}"
"HFENV": "zksync-${{ github.event.deployment.environment }}",
"RUNNER": "stage"
}
}
outputs:
shortRev: ${{ steps.print.outputs.shortRev }}
kubeConf: ${{ env.KUBECONF }}
hfEnv: ${{ env.HFENV }}
runner: ${{ env.RUNNER }}
isTag: ${{ steps.regex-match.outputs.group1 != '' }}

build-images:
Expand Down Expand Up @@ -88,7 +93,7 @@ jobs:
deploy:
name: Deploy Apps
runs-on: [k8s, deployer, "${{ github.event.deployment.environment }}"]
runs-on: [k8s, deployer, "${{ needs.pre.outputs.runner }}"]
needs: [pre, build-images]

container:
Expand Down

0 comments on commit e405798

Please sign in to comment.