edit pipeline
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Aaron Riedel 2023-09-21 22:51:27 +02:00
parent d087b6b667
commit 76e111b493
Signed by: aaron
GPG key ID: 643004654D40D577

View file

@ -9,7 +9,43 @@ steps:
password:
from_secret: DOCKER_PASSWORD
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:
branch:
- master
@ -26,8 +62,12 @@ steps:
tags: latest
dry_run: true
when:
exclude:
branch:
exclude:
- master
event:
exclude:
- push
volumes:
- name: deployment-repo
temp: {}