fix(ci): sleep deprivation

This commit is contained in:
2026-07-04 05:14:08 +07:00 Unverified
parent 2e6afb2f1a
commit 5dd18bc342
+7 -18
View File
@@ -111,24 +111,13 @@ jobs:
# DB migration # DB migration
kubectl delete job db-migrate -n buzz --ignore-not-found kubectl delete job db-migrate -n buzz --ignore-not-found
cat <<JOBEOF | kubectl apply -f - kubectl create job db-migrate \
apiVersion: batch/v1 --image=mts.dgnr.us:5000/${{ gitea.repository }}:migration-$TAG \
kind: Job -n buzz \
metadata: --dry-run=client -o json \
name: db-migrate -- bun dr push | \
namespace: buzz jq '.spec.template.spec.containers[0].envFrom = [{"secretRef": {"name": "buzz-env"}}]' | \
spec: kubectl apply -f -
template:
spec:
restartPolicy: Never
containers:
- name: db-migrate
image: mts.dgnr.us:5000/${{ gitea.repository }}:migration-$TAG
command: ["bun", "dr", "push"]
envFrom:
- secretRef:
name: buzz-env
JOBEOF
# Roll app & backend # Roll app & backend
kubectl set image deployment/app app=mts.dgnr.us:5000/${{ gitea.repository }}:frontend-$TAG -n buzz kubectl set image deployment/app app=mts.dgnr.us:5000/${{ gitea.repository }}:frontend-$TAG -n buzz