update drone
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Aaron Riedel 2023-09-24 04:21:48 +02:00
parent b563539158
commit 204ef64f72
Signed by: aaron
GPG key ID: 643004654D40D577

View file

@ -1,7 +1,7 @@
kind: pipeline
name: deploy
steps:
- name: docker
- name: docker
image: plugins/docker
settings:
username:
@ -11,13 +11,13 @@ steps:
repo: aaronriedel/egress-test
tags:
- latest
- ${DRONE_COMMIT_SHA:0:8}
- ${DRONE_BUILD_NUMBER}
- name: bump tag in deployment-repo
image: aaronriedel/kustomize-ci
commands:
- cd /deployment-repo
- git clone https://git.ar21.de/aaron/egress-test-deployment.git .
- kustomize edit set image aaronriedel/egress-test=aaronriedel/egress-test:${DRONE_COMMIT_SHA:0:8}
- kustomize edit set image aaronriedel/egress-test=aaronriedel/egress-test:${DRONE_BUILD_NUMBER}
- kustomize build -o /deployment-repo/ressources/deployment.yaml
volumes:
- name: deployment-repo
@ -30,7 +30,7 @@ steps:
path: /deployment-repo
force: false
commit: true
commit_message: "update image tag to ${DRONE_COMMIT_SHA:0:8}"
commit_message: "update image tag to ${DRONE_BUILD_NUMBER}"
ssh_key:
from_secret: GITEA_SSH_KEY
volumes:
@ -38,4 +38,11 @@ steps:
path: /deployment-repo
volumes:
- name: deployment-repo
temp: {}
temp: {}
when:
branch:
include:
- main
event:
include:
- push