automatically push new tag
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
cca9ebe9a6
commit
6561db6723
1 changed files with 37 additions and 0 deletions
37
.drone.yml
37
.drone.yml
|
@ -44,6 +44,43 @@ steps:
|
|||
- main
|
||||
event:
|
||||
- push
|
||||
- name: bump tag in deployment-repo
|
||||
image: aaronriedel/kustomize-ci
|
||||
commands:
|
||||
- cd /deployment-repo
|
||||
- git clone https://git.ar21.de/yolokube/fail2ban-exporter-deployment.git .
|
||||
- cd /deployment-repo
|
||||
- kustomize edit set image yolokube/country-geo-locations=yolokube/country-geo-locations:${DRONE_BUILD_NUMBER}
|
||||
volumes:
|
||||
- name: deployment-repo
|
||||
path: /deployment-repo
|
||||
when:
|
||||
branch:
|
||||
- main
|
||||
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/fail2ban-exporter-deployment.git
|
||||
path: /deployment-repo
|
||||
force: false
|
||||
commit: true
|
||||
commit_message: "yolokube/country-geo-locations: 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:
|
||||
- main
|
||||
event:
|
||||
- push
|
||||
volumes:
|
||||
- name: deployment-repo
|
||||
temp: {}
|
||||
when:
|
||||
event:
|
||||
exclude:
|
||||
|
|
Loading…
Reference in a new issue