changed to reach the correct deployment
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 47s
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 47s
This commit is contained in:
@@ -91,17 +91,19 @@ jobs:
|
|||||||
COMMIT_SHA="${GITHUB_SHA:-$GITEA_SHA}"
|
COMMIT_SHA="${GITHUB_SHA:-$GITEA_SHA}"
|
||||||
SHORT_SHA="$(echo "${COMMIT_SHA}" | cut -c1-12)"
|
SHORT_SHA="$(echo "${COMMIT_SHA}" | cut -c1-12)"
|
||||||
|
|
||||||
# Patch the dagster-user-deployments to update the image tag
|
DEPLOYMENT_NAME="dataprovider01-dataprovider-orchestration-platform-dagster-user-template-code-location"
|
||||||
kubectl patch statefulset dagster-user-deployments \
|
|
||||||
|
# Patch the deployment to update the image tag
|
||||||
|
kubectl patch deployment "${DEPLOYMENT_NAME}" \
|
||||||
-n "${K8S_NAMESPACE}" \
|
-n "${K8S_NAMESPACE}" \
|
||||||
--type='json' \
|
--type='json' \
|
||||||
-p="[{'op': 'replace', 'path': '/spec/template/spec/containers/0/image', 'value':'${IMAGE_REPO}:${SHORT_SHA}'}]"
|
-p="[{'op': 'replace', 'path': '/spec/template/spec/containers/0/image', 'value':'${IMAGE_REPO}:${SHORT_SHA}'}]"
|
||||||
|
|
||||||
# Trigger rollout restart to pick up new image
|
# Trigger rollout restart to pick up new image
|
||||||
kubectl rollout restart statefulset/dagster-user-deployments \
|
kubectl rollout restart deployment/"${DEPLOYMENT_NAME}" \
|
||||||
-n "${K8S_NAMESPACE}"
|
-n "${K8S_NAMESPACE}"
|
||||||
|
|
||||||
# Wait for rollout to complete
|
# Wait for rollout to complete
|
||||||
kubectl rollout status statefulset/dagster-user-deployments \
|
kubectl rollout status deployment/"${DEPLOYMENT_NAME}" \
|
||||||
-n "${K8S_NAMESPACE}" \
|
-n "${K8S_NAMESPACE}" \
|
||||||
--timeout=5m
|
--timeout=5m
|
||||||
|
|||||||
Reference in New Issue
Block a user