Skip to content

Commit

Permalink
use fixed context names in ci workflows (#2147)
Browse files Browse the repository at this point in the history
Signed-off-by: Denis Baryshev <[email protected]>
  • Loading branch information
dennybaa authored Jan 26, 2022
1 parent afb5f2d commit 435cc64
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 10 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy-zksync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,8 @@ jobs:
run: |
kubectl config set-credentials user --token=${{ steps.kubeConf.outputs.token }}
kubectl config set-cluster default --server=https://kubernetes.default --insecure-skip-tls-verify=true
kubectl config set-context default --user=user --cluster=default
kubectl config use-context default
kubectl config set-context matterlabs-zksync-${{ needs.setup.outputs.runner }} --user=user --cluster=default
kubectl config use-context matterlabs-zksync-${{ needs.setup.outputs.runner }}
-
name: Clone helm-infra
uses: actions/checkout@v2
Expand Down
13 changes: 7 additions & 6 deletions .github/workflows/loadtest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ env:
ZKSYNC_ENV: loadtest
HF_ARGS: -e loadtest
DEPLOY_SA_NAME: gha-deployer-stage
DEPLOY_K8S_CONTEXT: matterlabs-zksync-stage

jobs:
update:
Expand Down Expand Up @@ -74,8 +75,8 @@ jobs:
run: |
kubectl config set-credentials user --token=${{ steps.kubeConf.outputs.token }}
kubectl config set-cluster default --server=https://kubernetes.default --insecure-skip-tls-verify=true
kubectl config set-context default --user=user --cluster=default
kubectl config use-context default
kubectl config set-context $DEPLOY_K8S_CONTEXT --user=user --cluster=default
kubectl config use-context $DEPLOY_K8S_CONTEXT
-
name: Provision SQLProxy
working-directory: helm-infra
Expand Down Expand Up @@ -174,8 +175,8 @@ jobs:
run: |
kubectl config set-credentials user --token=${{ steps.kubeConf.outputs.token }}
kubectl config set-cluster default --server=https://kubernetes.default --insecure-skip-tls-verify=true
kubectl config set-context default --user=user --cluster=default
kubectl config use-context default
kubectl config set-context $DEPLOY_K8S_CONTEXT --user=user --cluster=default
kubectl config use-context $DEPLOY_K8S_CONTEXT
-
name: Update contracts in the ConfigMap
run: .github/scripts/zksync-env.sh --update-from deployed_contracts.log
Expand Down Expand Up @@ -243,8 +244,8 @@ jobs:
run: |
kubectl config set-credentials user --token=${{ steps.kubeConf.outputs.token }}
kubectl config set-cluster default --server=https://kubernetes.default --insecure-skip-tls-verify=true
kubectl config set-context default --user=user --cluster=default
kubectl config use-context default
kubectl config set-context $DEPLOY_K8S_CONTEXT --user=user --cluster=default
kubectl config use-context $DEPLOY_K8S_CONTEXT
-
name: Scale loadtest to 0 replicas
run: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/update-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ jobs:
run: |
kubectl config set-credentials user --token=${{ steps.kubeConf.outputs.token }}
kubectl config set-cluster default --server=https://kubernetes.default --insecure-skip-tls-verify=true
kubectl config set-context default --user=user --cluster=default
kubectl config use-context default
kubectl config set-context matterlabs-zksync-${{ needs.setup.outputs.runner }} --user=user --cluster=default
kubectl config use-context matterlabs-zksync-${{ needs.setup.outputs.runner }}
-
name: Clone configs
uses: actions/checkout@v2
Expand Down

0 comments on commit 435cc64

Please sign in to comment.