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
kubectl delete job db-migrate -n buzz --ignore-not-found
cat <<JOBEOF | kubectl apply -f -
apiVersion: batch/v1
kind: Job
metadata:
name: db-migrate
namespace: buzz
spec:
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
kubectl create job db-migrate \
--image=mts.dgnr.us:5000/${{ gitea.repository }}:migration-$TAG \
-n buzz \
--dry-run=client -o json \
-- bun dr push | \
jq '.spec.template.spec.containers[0].envFrom = [{"secretRef": {"name": "buzz-env"}}]' | \
kubectl apply -f -
# Roll app & backend
kubectl set image deployment/app app=mts.dgnr.us:5000/${{ gitea.repository }}:frontend-$TAG -n buzz