wn-discoteam-theme/.drone.yml

36 lines
981 B
YAML
Raw Permalink Normal View History

2024-02-13 01:01:15 +01:00
kind: pipeline
type: docker
name: default
workspace:
2024-10-25 17:58:02 +02:00
path: /drone/nami
2024-02-13 01:01:15 +01:00
steps:
2024-10-25 17:58:02 +02:00
- name: node
image: node:18.13.0-slim
commands:
- npm ci && npm run production && rm -R node_modules
2024-10-25 17:58:13 +02:00
- rm -Rf .git
2024-02-13 01:01:15 +01:00
2024-10-25 17:58:02 +02:00
- 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/ disco-st-katharina@zoomyboy.de:httpdocs/themes/vite-tailwind
- ssh disco-st-katharina@zoomyboy.de "cd httpdocs && php8.1 artisan cache:clear"
2024-02-13 01:01:15 +01:00
trigger:
2024-10-25 17:58:02 +02:00
event:
- push
branch:
- master