ci: fix stuck on migration runs
This commit is contained in:
@@ -79,7 +79,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
if [ "${{ inputs.module }}" = "migrations" ]; then
|
if [ "${{ inputs.module }}" = "migrations" ]; then
|
||||||
kubectl delete job migrations --ignore-not-found
|
kubectl delete job migrations --ignore-not-found
|
||||||
skaffold run -p migrations --tail
|
skaffold run -p migrations
|
||||||
else
|
else
|
||||||
skaffold run -p ${{ inputs.environment }} -m ${{ inputs.module }}
|
skaffold run -p ${{ inputs.environment }} -m ${{ inputs.module }}
|
||||||
fi
|
fi
|
||||||
|
|||||||
+2
-2
@@ -38,12 +38,12 @@ PROD_REPO := us-west2-docker.pkg.dev/flowy-prod-440017/deployments
|
|||||||
.PHONY: migrate-dev
|
.PHONY: migrate-dev
|
||||||
migrate-dev:
|
migrate-dev:
|
||||||
kubectl delete job migrations --ignore-not-found --context=dev
|
kubectl delete job migrations --ignore-not-found --context=dev
|
||||||
SKAFFOLD_DEFAULT_REPO=$(DEV_REPO) skaffold run -p migrations --kube-context dev --tail
|
SKAFFOLD_DEFAULT_REPO=$(DEV_REPO) skaffold run -p migrations --kube-context dev
|
||||||
|
|
||||||
.PHONY: migrate-prod
|
.PHONY: migrate-prod
|
||||||
migrate-prod:
|
migrate-prod:
|
||||||
kubectl delete job migrations --ignore-not-found --context=prod
|
kubectl delete job migrations --ignore-not-found --context=prod
|
||||||
SKAFFOLD_DEFAULT_REPO=$(PROD_REPO) skaffold run -p migrations --kube-context prod --tail
|
SKAFFOLD_DEFAULT_REPO=$(PROD_REPO) skaffold run -p migrations --kube-context prod
|
||||||
|
|
||||||
# ---- Deploy ----
|
# ---- Deploy ----
|
||||||
# Use MODULE=orion or MODULE=particleprocessor or MODULE=pusher or MODULE=emailnotifierjob to deploy a single service, e.g.:
|
# Use MODULE=orion or MODULE=particleprocessor or MODULE=pusher or MODULE=emailnotifierjob to deploy a single service, e.g.:
|
||||||
|
|||||||
Reference in New Issue
Block a user