This commit is contained in:
parent
f71843de9a
commit
6f126515fe
1 changed files with 34 additions and 7 deletions
41
.drone.yml
41
.drone.yml
|
@ -13,6 +13,29 @@ steps:
|
||||||
tags:
|
tags:
|
||||||
- latest
|
- latest
|
||||||
- ${DRONE_BUILD_NUMBER}
|
- ${DRONE_BUILD_NUMBER}
|
||||||
|
when:
|
||||||
|
branch:
|
||||||
|
- main
|
||||||
|
event:
|
||||||
|
- push
|
||||||
|
- name: docker-build
|
||||||
|
image: plugins/docker
|
||||||
|
settings:
|
||||||
|
username:
|
||||||
|
from_secret: DOCKER_USERNAME
|
||||||
|
password:
|
||||||
|
from_secret: DOCKER_PASSWORD
|
||||||
|
repo: aaronriedel/egress-test
|
||||||
|
tags:
|
||||||
|
- latest
|
||||||
|
- ${DRONE_BUILD_NUMBER}
|
||||||
|
dry_run: true
|
||||||
|
when:
|
||||||
|
branch:
|
||||||
|
exclude:
|
||||||
|
- main
|
||||||
|
event:
|
||||||
|
- 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:
|
||||||
|
@ -23,6 +46,12 @@ steps:
|
||||||
volumes:
|
volumes:
|
||||||
- name: deployment-repo
|
- name: deployment-repo
|
||||||
path: /deployment-repo
|
path: /deployment-repo
|
||||||
|
settings:
|
||||||
|
when:
|
||||||
|
branch:
|
||||||
|
- main
|
||||||
|
event:
|
||||||
|
- 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:
|
||||||
|
@ -34,16 +63,14 @@ 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:
|
||||||
|
branch:
|
||||||
|
- main
|
||||||
|
event:
|
||||||
|
- push
|
||||||
volumes:
|
volumes:
|
||||||
- name: deployment-repo
|
- name: deployment-repo
|
||||||
path: /deployment-repo
|
path: /deployment-repo
|
||||||
volumes:
|
volumes:
|
||||||
- name: deployment-repo
|
- name: deployment-repo
|
||||||
temp: {}
|
temp: {}
|
||||||
when:
|
|
||||||
branch:
|
|
||||||
include:
|
|
||||||
- main
|
|
||||||
event:
|
|
||||||
include:
|
|
||||||
- push
|
|
Reference in a new issue