fix-stuff #9
1 changed files with 44 additions and 4 deletions
48
.drone.yml
48
.drone.yml
|
@ -9,7 +9,43 @@ steps:
|
||||||
password:
|
password:
|
||||||
from_secret: DOCKER_PASSWORD
|
from_secret: DOCKER_PASSWORD
|
||||||
repo: yolokube/dashboard
|
repo: yolokube/dashboard
|
||||||
tags: latest
|
tags:
|
||||||
|
- latest
|
||||||
|
- ${DRONE_BUILD_NUMBER}
|
||||||
|
when:
|
||||||
|
branch:
|
||||||
|
- master
|
||||||
|
event:
|
||||||
|
- push
|
||||||
|
- name: bump tag in deployment-repo
|
||||||
|
image: aaronriedel/kustomize-ci
|
||||||
|
commands:
|
||||||
|
- cd /deployment-repo/dashboard
|
||||||
|
- git clone https://git.ar21.de/yolokube/core-deployments.git .
|
||||||
|
- kustomize edit set image yolokube/dashboard=yolokube/dashboard:${DRONE_BUILD_NUMBER}
|
||||||
|
- kustomize build -o /deployment-repo/dashboard/dashboard.yaml
|
||||||
|
volumes:
|
||||||
|
- name: deployment-repo
|
||||||
|
path: /deployment-repo
|
||||||
|
when:
|
||||||
|
branch:
|
||||||
|
- master
|
||||||
|
event:
|
||||||
|
- push
|
||||||
|
- name: push new tag to deployment-repo
|
||||||
|
image: appleboy/drone-git-push
|
||||||
|
settings:
|
||||||
|
branch: main
|
||||||
|
remote: ssh://git@git.ar21.de:2222/yolokube/core-deployments.git
|
||||||
|
path: /deployment-repo
|
||||||
|
force: false
|
||||||
|
commit: true
|
||||||
|
commit_message: "DASHBOARD: update image tag to ${DRONE_BUILD_NUMBER} (done automagically via Drone pipeline)"
|
||||||
|
ssh_key:
|
||||||
|
from_secret: GITEA_SSH_KEY
|
||||||
|
volumes:
|
||||||
|
- name: deployment-repo
|
||||||
|
path: /deployment-repo
|
||||||
when:
|
when:
|
||||||
branch:
|
branch:
|
||||||
- master
|
- master
|
||||||
|
@ -26,8 +62,12 @@ steps:
|
||||||
tags: latest
|
tags: latest
|
||||||
dry_run: true
|
dry_run: true
|
||||||
when:
|
when:
|
||||||
exclude:
|
|
||||||
branch:
|
branch:
|
||||||
- master
|
exclude:
|
||||||
|
- master
|
||||||
event:
|
event:
|
||||||
- push
|
exclude:
|
||||||
|
- push
|
||||||
|
volumes:
|
||||||
|
- name: deployment-repo
|
||||||
|
temp: {}
|
||||||
|
|
Loading…
Reference in a new issue