This commit is contained in:
parent
b563539158
commit
204ef64f72
1 changed files with 12 additions and 5 deletions
17
.drone.yml
17
.drone.yml
|
@ -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
|
Reference in a new issue