drone: allow promoted builds
This commit is contained in:
parent
fa2345759f
commit
0e25a39f08
16
.drone.yml
16
.drone.yml
@ -13,6 +13,10 @@ services:
|
|||||||
privileged: true
|
privileged: true
|
||||||
environment:
|
environment:
|
||||||
DOCKER_TLS_CERTDIR: ""
|
DOCKER_TLS_CERTDIR: ""
|
||||||
|
when:
|
||||||
|
event:
|
||||||
|
- tag
|
||||||
|
- promote
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: container build
|
- name: container build
|
||||||
@ -27,7 +31,9 @@ steps:
|
|||||||
from_secret: DOCKER_REGISTRY
|
from_secret: DOCKER_REGISTRY
|
||||||
DOCKER_HOST: tcp://localhost:2375
|
DOCKER_HOST: tcp://localhost:2375
|
||||||
when:
|
when:
|
||||||
event: tag
|
event:
|
||||||
|
- tag
|
||||||
|
- promote
|
||||||
|
|
||||||
- name: environment substitution
|
- name: environment substitution
|
||||||
image: rockylinux:9.0-minimal
|
image: rockylinux:9.0-minimal
|
||||||
@ -44,7 +50,9 @@ steps:
|
|||||||
NODED_DATABASE_NAME:
|
NODED_DATABASE_NAME:
|
||||||
from_secret: NODED_DATABASE_NAME
|
from_secret: NODED_DATABASE_NAME
|
||||||
when:
|
when:
|
||||||
event: tag
|
event:
|
||||||
|
- tag
|
||||||
|
- promote
|
||||||
|
|
||||||
- name: k8s rollout
|
- name: k8s rollout
|
||||||
image: bitnami/kubectl
|
image: bitnami/kubectl
|
||||||
@ -55,4 +63,6 @@ steps:
|
|||||||
- container build
|
- container build
|
||||||
- environment substitution
|
- environment substitution
|
||||||
when:
|
when:
|
||||||
event: tag
|
event:
|
||||||
|
- tag
|
||||||
|
- promote
|
||||||
|
Loading…
Reference in New Issue
Block a user