Compare commits

...

2 Commits

Author SHA1 Message Date
Yaojia Wang
26cd716590 ci: simplify deploy by using kubectl rollout restart after build
All checks were successful
continuous-integration/drone/push Build is passing
2026-03-18 23:34:54 +01:00
Yaojia Wang
42f25426ac fix: correct drone yaml environment syntax 2026-03-18 23:33:17 +01:00
2 changed files with 3 additions and 17 deletions

View File

@@ -23,18 +23,7 @@ steps:
--insecure --insecure
--skip-tls-verify --skip-tls-verify
- name: update-manifests - name: restart-deployment
image: alpine/git:latest image: bitnami/kubectl:latest
environment:
GITEA_TOKEN:
from_secret: gitea_token
commands: commands:
- cd /drone/src - kubectl rollout restart deploy/invest-api -n invest-api
- TAG=$(echo $DRONE_COMMIT_SHA | cut -c1-8)
- sed -i "s/newTag:.*/newTag: $TAG/" k8s/base/kustomization.yaml
- git config user.email "drone@colacoder.com"
- git config user.name "Drone CI"
- git add k8s/base/kustomization.yaml
- "git commit -m \"chore: update image tag to $TAG [skip ci]\""
- git remote set-url origin https://kai:$GITEA_TOKEN@git.colacoder.com/kai/openbb-invest-api.git
- git push origin main

View File

@@ -10,6 +10,3 @@ resources:
- service.yaml - service.yaml
- ingress.yaml - ingress.yaml
images:
- name: 192.168.68.11:30500/invest-api
newTag: latest