mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-04 09:01:01 +01:00
Enable redeploying same image for QA (#1159)
* Fixing the redeploy of the same docker image to QA * removing a line that snuck in
This commit is contained in:
parent
fa4e5250b9
commit
bb30f3b7c3
15
.github/workflows/qa-deploy.yml
vendored
15
.github/workflows/qa-deploy.yml
vendored
@ -8,10 +8,10 @@ on:
|
||||
required: false
|
||||
|
||||
env:
|
||||
QA_CLUSTER_RESOURCE_GROUP: "bitwarden-devops"
|
||||
QA_CLUSTER_NAME: "dev-aks"
|
||||
QA_K8S_NAMESPACE: "bw-qa"
|
||||
QA_K8S_APP_NAME: "bw-web"
|
||||
_QA_CLUSTER_RESOURCE_GROUP: "bitwarden-devops"
|
||||
_QA_CLUSTER_NAME: "dev-aks"
|
||||
_QA_K8S_NAMESPACE: "bw-qa"
|
||||
_QA_K8S_APP_NAME: "bw-web"
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
@ -49,7 +49,7 @@ jobs:
|
||||
echo "---az install---"
|
||||
az aks install-cli --install-location ./kubectl --kubelogin-install-location ./kubelogin
|
||||
echo "---az get-creds---"
|
||||
az aks get-credentials -n $QA_CLUSTER_NAME -g $QA_CLUSTER_RESOURCE_GROUP
|
||||
az aks get-credentials -n $_QA_CLUSTER_NAME -g $_QA_CLUSTER_RESOURCE_GROUP
|
||||
|
||||
- name: Get image tag
|
||||
id: image_tag
|
||||
@ -66,5 +66,6 @@ jobs:
|
||||
env:
|
||||
IMAGE_TAG: ${{ steps.image_tag.outputs.value }}
|
||||
run: |
|
||||
kubectl set image -n $QA_K8S_NAMESPACE deployment/web web=bitwardenqa.azurecr.io/web:$IMAGE_TAG --record
|
||||
kubectl rollout status deployment/web -n $QA_K8S_NAMESPACE
|
||||
kubectl set image -n $_QA_K8S_NAMESPACE deployment/web web=bitwardenqa.azurecr.io/web:$IMAGE_TAG --record
|
||||
kubectl rollout restart -n $QA_K8s_NAMESPACE deployment/web
|
||||
kubectl rollout status deployment/web -n $_QA_K8S_NAMESPACE
|
||||
|
Loading…
Reference in New Issue
Block a user