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
|
repo: aaronriedel/egress-test
|
||||||
tags:
|
tags:
|
||||||
- latest
|
- latest
|
||||||
- ${DRONE_COMMIT_SHA:0:8}
|
- ${DRONE_BUILD_NUMBER}
|
||||||
- name: bump tag in deployment-repo
|
- name: bump tag in deployment-repo
|
||||||
image: aaronriedel/kustomize-ci
|
image: aaronriedel/kustomize-ci
|
||||||
commands:
|
commands:
|
||||||
- cd /deployment-repo
|
- cd /deployment-repo
|
||||||
- git clone https://git.ar21.de/aaron/egress-test-deployment.git .
|
- 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
|
- kustomize build -o /deployment-repo/ressources/deployment.yaml
|
||||||
volumes:
|
volumes:
|
||||||
- name: deployment-repo
|
- name: deployment-repo
|
||||||
|
@ -30,7 +30,7 @@ steps:
|
||||||
path: /deployment-repo
|
path: /deployment-repo
|
||||||
force: false
|
force: false
|
||||||
commit: true
|
commit: true
|
||||||
commit_message: "update image tag to ${DRONE_COMMIT_SHA:0:8}"
|
commit_message: "update image tag to ${DRONE_BUILD_NUMBER}"
|
||||||
ssh_key:
|
ssh_key:
|
||||||
from_secret: GITEA_SSH_KEY
|
from_secret: GITEA_SSH_KEY
|
||||||
volumes:
|
volumes:
|
||||||
|
@ -39,3 +39,10 @@ steps:
|
||||||
volumes:
|
volumes:
|
||||||
- name: deployment-repo
|
- name: deployment-repo
|
||||||
temp: {}
|
temp: {}
|
||||||
|
when:
|
||||||
|
branch:
|
||||||
|
include:
|
||||||
|
- main
|
||||||
|
event:
|
||||||
|
include:
|
||||||
|
- push
|
Reference in a new issue