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:
|
tags:
|
||||||
- latest
|
- latest
|
||||||
- ${DRONE_BUILD_NUMBER}
|
- ${DRONE_BUILD_NUMBER}
|
||||||
when:
|
when:
|
||||||
branch:
|
branch:
|
||||||
- main
|
- main
|
||||||
event:
|
event:
|
||||||
- push
|
- push
|
||||||
- name: docker-build
|
- name: docker-build
|
||||||
image: plugins/docker
|
image: plugins/docker
|
||||||
settings:
|
settings:
|
||||||
|
@ -30,12 +30,12 @@ steps:
|
||||||
- latest
|
- latest
|
||||||
- ${DRONE_BUILD_NUMBER}
|
- ${DRONE_BUILD_NUMBER}
|
||||||
dry_run: true
|
dry_run: true
|
||||||
when:
|
when:
|
||||||
branch:
|
branch:
|
||||||
exclude:
|
exclude:
|
||||||
- main
|
- main
|
||||||
event:
|
event:
|
||||||
- push
|
- push
|
||||||
- name: bump tag in deployment-repo
|
- name: bump tag in deployment-repo
|
||||||
image: git.ar21.de/aaron/kustomize-ci
|
image: git.ar21.de/aaron/kustomize-ci
|
||||||
commands:
|
commands:
|
||||||
|
@ -46,12 +46,11 @@ steps:
|
||||||
volumes:
|
volumes:
|
||||||
- name: deployment-repo
|
- name: deployment-repo
|
||||||
path: /deployment-repo
|
path: /deployment-repo
|
||||||
settings:
|
when:
|
||||||
when:
|
branch:
|
||||||
branch:
|
- main
|
||||||
- main
|
event:
|
||||||
event:
|
- push
|
||||||
- push
|
|
||||||
- name: push new tag to deployment-repo
|
- name: push new tag to deployment-repo
|
||||||
image: appleboy/drone-git-push
|
image: appleboy/drone-git-push
|
||||||
settings:
|
settings:
|
||||||
|
@ -63,11 +62,11 @@ steps:
|
||||||
commit_message: "update image tag to ${DRONE_BUILD_NUMBER}"
|
commit_message: "update image tag to ${DRONE_BUILD_NUMBER}"
|
||||||
ssh_key:
|
ssh_key:
|
||||||
from_secret: GITEA_SSH_KEY
|
from_secret: GITEA_SSH_KEY
|
||||||
when:
|
when:
|
||||||
branch:
|
branch:
|
||||||
- main
|
- main
|
||||||
event:
|
event:
|
||||||
- push
|
- push
|
||||||
volumes:
|
volumes:
|
||||||
- name: deployment-repo
|
- name: deployment-repo
|
||||||
path: /deployment-repo
|
path: /deployment-repo
|
||||||
|
|
Reference in a new issue