Compare commits
2 Commits
d4e06c71b7
...
26cd716590
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
26cd716590 | ||
|
|
42f25426ac |
17
.drone.yml
17
.drone.yml
@@ -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
|
|
||||||
|
|||||||
@@ -10,6 +10,3 @@ resources:
|
|||||||
- service.yaml
|
- service.yaml
|
||||||
- ingress.yaml
|
- ingress.yaml
|
||||||
|
|
||||||
images:
|
|
||||||
- name: 192.168.68.11:30500/invest-api
|
|
||||||
newTag: latest
|
|
||||||
|
|||||||
Reference in New Issue
Block a user