wi-adrema-plugin/.drone.yml

40 lines
1.0 KiB
YAML

kind: pipeline
type: docker
name: default
workspace:
path: /drone/nami
steps:
- name: submodules
image: alpine/git
commands:
- git submodule update --init --recursive
- name: node
image: node:18.13.0-slim
commands:
- cd assets/vendor/adrema-form && npm ci && npm run build && rm -R node_modules && cd ../../
- name: deploy
image: php:8.1.6
environment:
SSH_KEY:
from_secret: deploy_key
commands:
- apt-get update > /dev/null
- apt-get install -y openssh-client rsync
- mkdir $HOME/.ssh
- echo "UserKnownHostsFile=/dev/null" >> $HOME/.ssh/config
- echo "StrictHostKeyChecking=no" >> $HOME/.ssh/config
- echo "$SSH_KEY" > $HOME/.ssh/id_rsa
- chmod 600 $HOME/.ssh/id_rsa
- rsync --delete -avzze ssh /drone/nami/ dpsgbergischland@zoomyboy.de:httpdocs/plugins/silva/adrema
- rsync --delete -avzze ssh /drone/nami/ stammsilva@zoomyboy.de:httpdocs/plugins/silva/adrema
trigger:
event:
- push
branch:
- master