wn-discoteam-theme/.drone.yml

34 lines
749 B
YAML
Raw Normal View History

2024-02-13 01:01:15 +01:00
kind: pipeline
type: docker
name: default
workspace:
path: /drone/nami
steps:
- name: node
image: node:18.13.0-slim
commands:
- npm ci && npm run production
- name: deploy
image: php:8.1.6
environment:
SSH_KEY:
2024-02-13 01:08:59 +01:00
from_secret: deploy_key
2024-02-13 01:01:15 +01:00
commands:
- apt-get update > /dev/null
2024-02-13 01:07:50 +01:00
- apt-get install -y openssh-client rsync
2024-02-13 01:01:15 +01:00
- 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
2024-02-13 01:10:25 +01:00
- rsync --delete -avzze ssh /drone/nami disco-st-katharina@zoomyboy.de:discotest
2024-02-13 01:01:15 +01:00
trigger:
2024-02-13 01:03:39 +01:00
event:
- push
2024-02-13 01:01:15 +01:00
branch:
- master