This commit is contained in:
parent
6f126515fe
commit
d9a7a91826
1 changed files with 21 additions and 22 deletions
43
.drone.yml
43
.drone.yml
|
@ -13,11 +13,11 @@ steps:
|
|||
tags:
|
||||
- latest
|
||||
- ${DRONE_BUILD_NUMBER}
|
||||
when:
|
||||
branch:
|
||||
- main
|
||||
event:
|
||||
- push
|
||||
when:
|
||||
branch:
|
||||
- main
|
||||
event:
|
||||
- push
|
||||
- name: docker-build
|
||||
image: plugins/docker
|
||||
settings:
|
||||
|
@ -30,12 +30,12 @@ steps:
|
|||
- latest
|
||||
- ${DRONE_BUILD_NUMBER}
|
||||
dry_run: true
|
||||
when:
|
||||
branch:
|
||||
exclude:
|
||||
- main
|
||||
event:
|
||||
- push
|
||||
when:
|
||||
branch:
|
||||
exclude:
|
||||
- main
|
||||
event:
|
||||
- push
|
||||
- name: bump tag in deployment-repo
|
||||
image: git.ar21.de/aaron/kustomize-ci
|
||||
commands:
|
||||
|
@ -46,12 +46,11 @@ steps:
|
|||
volumes:
|
||||
- name: deployment-repo
|
||||
path: /deployment-repo
|
||||
settings:
|
||||
when:
|
||||
branch:
|
||||
- main
|
||||
event:
|
||||
- push
|
||||
when:
|
||||
branch:
|
||||
- main
|
||||
event:
|
||||
- push
|
||||
- name: push new tag to deployment-repo
|
||||
image: appleboy/drone-git-push
|
||||
settings:
|
||||
|
@ -63,11 +62,11 @@ steps:
|
|||
commit_message: "update image tag to ${DRONE_BUILD_NUMBER}"
|
||||
ssh_key:
|
||||
from_secret: GITEA_SSH_KEY
|
||||
when:
|
||||
branch:
|
||||
- main
|
||||
event:
|
||||
- push
|
||||
when:
|
||||
branch:
|
||||
- main
|
||||
event:
|
||||
- push
|
||||
volumes:
|
||||
- name: deployment-repo
|
||||
path: /deployment-repo
|
||||
|
|
Reference in a new issue