drone deployment

This commit is contained in:
2023-12-06 17:48:53 +01:00
parent 638b153969
commit 91d2f2da8a

40
.drone.yml Normal file
View File

@@ -0,0 +1,40 @@
kind: pipeline
name: deploy-froxlor
type: docker
platform:
os: linux
arch: arm64
trigger:
branch:
- private-0.10.35.1-dmarc
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
#- name: clear-cache
# image: appleboy/drone-ssh
# settings:
# host:
# - rechner02.maketank.net
# username: kmmportal
# key:
# from_secret: ssh-kmmportal-maketank-rsa
# script:
# - cd ~/drupal/sites/default && ~/drupal/vendor/bin/drush cc all
#