Compare commits

..

3 Commits

Author SHA1 Message Date
ktyl 4e4adf3b3c Merge pull request 'pull-request-execution' (#3) from pull-request-execution into main
continuous-integration/drone/push Build is passing Details
Reviewed-on: https://git.pizzawednesday.club/ktyl/ktyl.dev/pulls/3
2022-09-28 02:38:53 +02:00
ktyl 9fc5be60ef don't deploy on pull requests
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/pr Build is passing Details
2022-09-28 01:35:38 +01:00
ktyl 7fbc195a64 restrict deploy step to main branch 2022-09-28 01:35:38 +01:00
1 changed files with 6 additions and 6 deletions

View File

@ -31,11 +31,6 @@ steps:
from_secret: user from_secret: user
SSH_KEY: SSH_KEY:
from_secret: ssh_key from_secret: ssh_key
when:
branch:
- main
commands: commands:
# install deps # install deps
- apt-get update -qq > /dev/null - apt-get update -qq > /dev/null
@ -68,4 +63,9 @@ steps:
- rsync -rP site/* "$host:$${HOST}" - rsync -rP site/* "$host:$${HOST}"
- ssh $host $delete_current_files - ssh $host $delete_current_files
- ssh $host $deploy_new_files - ssh $host $deploy_new_files
when:
branch:
- main
event:
exclude:
- pull_request