deploy only on main
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Sergio Álvarez 2023-09-18 11:28:21 +02:00
parent 1bd83cd1a2
commit 0e300bf5e7
No known key found for this signature in database
GPG Key ID: 622780889DFDBDA5
1 changed files with 6 additions and 0 deletions

View File

@ -8,6 +8,9 @@ steps:
commands: commands:
- cd app - cd app
- composer install - composer install
when:
branch:
- main
- name: deploy-to-volume - name: deploy-to-volume
image: busybox:latest image: busybox:latest
@ -16,6 +19,9 @@ steps:
- mkdir -p /var/www/dencode - mkdir -p /var/www/dencode
- rm -rf /var/www/dencode/* - rm -rf /var/www/dencode/*
- cp -r . /var/www/dencode/ - cp -r . /var/www/dencode/
when:
branch:
- main
node: node:
location: nexus location: nexus