This commit is contained in:
parent
b563539158
commit
204ef64f72
1 changed files with 12 additions and 5 deletions
13
.drone.yml
13
.drone.yml
|
@ -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:
|
||||
|
@ -39,3 +39,10 @@ steps:
|
|||
volumes:
|
||||
- name: deployment-repo
|
||||
temp: {}
|
||||
when:
|
||||
branch:
|
||||
include:
|
||||
- main
|
||||
event:
|
||||
include:
|
||||
- push
|
Reference in a new issue