Drone: only build & push container on tag/promote
This commit is contained in:
parent
ddff22919a
commit
fe2ed05271
24
.drone.yml
24
.drone.yml
@ -13,10 +13,10 @@ services:
|
||||
privileged: true
|
||||
environment:
|
||||
DOCKER_TLS_CERTDIR: ""
|
||||
# when:
|
||||
# event:
|
||||
# - tag
|
||||
# - promote
|
||||
when:
|
||||
event:
|
||||
- tag
|
||||
- promote
|
||||
|
||||
steps:
|
||||
- name: node.js build
|
||||
@ -43,16 +43,16 @@ steps:
|
||||
DOCKER_HOST: tcp://localhost:2375
|
||||
DOCKER_REGISTRY:
|
||||
from_secret: DOCKER_REGISTRY
|
||||
# when:
|
||||
# event:
|
||||
# - tag
|
||||
# - promote
|
||||
when:
|
||||
event:
|
||||
- tag
|
||||
- promote
|
||||
|
||||
- name: k8s rollout
|
||||
image: bitnami/kubectl:latest
|
||||
commands:
|
||||
- kubectl rollout restart -n noded deployment/noded-frontend
|
||||
# when:
|
||||
# event:
|
||||
# - tag
|
||||
# - promote
|
||||
when:
|
||||
event:
|
||||
- tag
|
||||
- promote
|
||||
|
Loading…
Reference in New Issue
Block a user