ci: move deployment to ryali
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
light7734 2025-08-23 15:10:49 +03:30
parent b453be95bc
commit df3743c59f
Signed by: light7734
GPG key ID: 8C30176798F1A6BA

View file

@ -1,61 +1,35 @@
kind: pipeline kind: pipeline
type: docker type: docker
name: deploy_dev name: deploy_dev
node:
environment: ryali
trigger: trigger:
branch: branch:
- main - main
steps: steps:
- name: build - name: build and deploy
image: node:latest image: node:latest
commands: commands:
- npm install - npm install
- npm run build - npm run build
- rm -rf /dazzle/*'
- name: deploy - mv ./build/* /dazzle/'
image: byteflair/scp
commands:
- mv ./build ./dazzle_dev_staging
# Stage
- ssh -tt 'light@5.75.206.84' 'sudo rm -rf /home/light/dazzle_dev_staging'
- scp -r './dazzle_dev_staging' 'light@5.75.206.84:/home/light/'
# Move to endpoint
- ssh -tt 'light@5.75.206.84' 'sudo rm -rf /home/light/dazzle_dev/*'
- ssh -tt 'light@5.75.206.84' 'sudo mv /home/light/dazzle_dev_staging/* /home/light/dazzle_dev/'
# Remove staging
- ssh -tt 'light@5.75.206.84' 'sudo rm -rf /home/light/dazzle_dev_staging'
--- ---
kind: pipeline kind: pipeline
type: docker type: docker
name: deploy_prod name: deploy_prod
node:
environment: ryali
trigger: trigger:
event: event:
- tag - tag
steps: steps:
- name: build - name: build and deploy
image: node:latest image: node:latest
commands: commands:
- npm install - npm install
- npm run build - npm run build
- rm -rf /dazzle/*'
- name: deploy - mv ./build/* /dazzle/'
image: byteflair/scp
commands:
- mv ./build ./dazzle_staging
# Stage
- ssh -tt 'light@5.75.206.84' 'sudo rm -rf /home/light/dazzle_staging'
- scp -r './dazzle_staging' 'light@5.75.206.84:/home/light/'
# Move to endpoint
- ssh -tt 'light@5.75.206.84' 'sudo rm -rf /home/light/dazzle/*'
- ssh -tt 'light@5.75.206.84' 'sudo mv /home/light/dazzle_staging/* /home/light/dazzle/'
# Remove staging
- ssh -tt 'light@5.75.206.84' 'sudo rm -rf /home/light/dazzle_staging'