👷 Allow deploy steps only for master branch

This commit is contained in:
Maxim Lebedev 2022-06-10 14:48:39 +05:00
parent dc7f0481b0
commit 27fee626fe
Signed by: toby3d
GPG Key ID: 1F14E25B7C119FC5
1 changed files with 6 additions and 12 deletions

View File

@ -38,10 +38,8 @@ steps:
depends_on: depends_on:
- build - build
when: when:
event: branch:
- promote - master
target:
- production
- name: delivery - name: delivery
image: appleboy/drone-scp image: appleboy/drone-scp
@ -62,10 +60,8 @@ steps:
depends_on: depends_on:
- stop-service - stop-service
when: when:
event: branch:
- promote - master
target:
- production
- name: start-service - name: start-service
image: appleboy/drone-ssh image: appleboy/drone-ssh
@ -80,10 +76,8 @@ steps:
depends_on: depends_on:
- delivery - delivery
when: when:
event: branch:
- promote - master
target:
- production
volumes: volumes:
- name: modules - name: modules