fix(ci): sleep deprivation
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user