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:
|
2024-02-13 01:12:52 +01:00
|
|
|
- npm ci && npm run production && rm -R node_modules
|
2024-02-13 01:01:15 +01:00
|
|
|
|
|
|
|
- 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:12:52 +01:00
|
|
|
- rsync --delete -avzze ssh /drone/nami/ disco-st-katharina@zoomyboy.de:httpdocs/themes/vite-tailwind
|
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
|