40 lines
860 B
YAML
40 lines
860 B
YAML
kind: pipeline
|
|
name: deploy-froxlor
|
|
type: docker
|
|
|
|
platform:
|
|
os: linux
|
|
arch: arm64
|
|
|
|
trigger:
|
|
branch:
|
|
- live
|
|
event:
|
|
include:
|
|
- push
|
|
|
|
steps:
|
|
- name: deploy
|
|
image: cr.wks/drone/drone-rsync:latest
|
|
settings:
|
|
hosts: ["rechner02.maketank.net"]
|
|
source: ./
|
|
target: /var/www/froxlor
|
|
user: www-data
|
|
exclude: ['.git*', '*drone.yml', '.settings', '.buildpath', '.editorconfig', '.project', '.travis.yml']
|
|
args: '-v -n --delete'
|
|
log_level: quiet
|
|
key:
|
|
from_secret: ssh-www-data-maketank-rsa
|
|
command_timeout: 15m
|
|
#b- name: clear-cache
|
|
#b image: appleboy/drone-ssh
|
|
#b settings:
|
|
#b host:
|
|
#b - rechner02.maketank.net
|
|
#b username: kmmportal
|
|
#b key:
|
|
#b from_secret: ssh-kmmportal-maketank-rsa
|
|
#b script:
|
|
#b - cd ~/drupal/sites/default && ~/drupal/vendor/bin/drush cc all
|
|
#b |