Refactor pipeline script
This commit is contained in:
parent
3daf036a89
commit
c865f926b0
1 changed files with 5 additions and 23 deletions
|
|
@ -5,9 +5,6 @@
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: build
|
- name: build
|
||||||
when:
|
|
||||||
- branch: master
|
|
||||||
event: push
|
|
||||||
image: node:22
|
image: node:22
|
||||||
commands:
|
commands:
|
||||||
- npm ci
|
- npm ci
|
||||||
|
|
@ -15,9 +12,6 @@ steps:
|
||||||
- echo "VERSION=$(cat version.txt)" > .env
|
- echo "VERSION=$(cat version.txt)" > .env
|
||||||
|
|
||||||
- name: clear-from-host
|
- name: clear-from-host
|
||||||
when:
|
|
||||||
- branch: master
|
|
||||||
event: push
|
|
||||||
image: appleboy/drone-ssh
|
image: appleboy/drone-ssh
|
||||||
settings:
|
settings:
|
||||||
host:
|
host:
|
||||||
|
|
@ -34,9 +28,6 @@ steps:
|
||||||
- echo "Target directory cleared, resumes folder preserved"
|
- echo "Target directory cleared, resumes folder preserved"
|
||||||
|
|
||||||
- name: copy-to-host
|
- name: copy-to-host
|
||||||
when:
|
|
||||||
- branch: master
|
|
||||||
event: push
|
|
||||||
image: appleboy/drone-scp
|
image: appleboy/drone-scp
|
||||||
settings:
|
settings:
|
||||||
host:
|
host:
|
||||||
|
|
@ -53,9 +44,6 @@ steps:
|
||||||
- version.txt
|
- version.txt
|
||||||
|
|
||||||
- name: build-and-deploy
|
- name: build-and-deploy
|
||||||
when:
|
|
||||||
- branch: master
|
|
||||||
event: push
|
|
||||||
image: appleboy/drone-ssh
|
image: appleboy/drone-ssh
|
||||||
settings:
|
settings:
|
||||||
host:
|
host:
|
||||||
|
|
@ -83,9 +71,6 @@ steps:
|
||||||
- echo "Deployment attempt completed"
|
- echo "Deployment attempt completed"
|
||||||
|
|
||||||
- name: confirm-deployment
|
- name: confirm-deployment
|
||||||
when:
|
|
||||||
- branch: master
|
|
||||||
event: push
|
|
||||||
image: appleboy/drone-ssh
|
image: appleboy/drone-ssh
|
||||||
settings:
|
settings:
|
||||||
host:
|
host:
|
||||||
|
|
@ -116,9 +101,6 @@ steps:
|
||||||
- echo "Deployment confirmed successfully"
|
- echo "Deployment confirmed successfully"
|
||||||
|
|
||||||
- name: cleanup
|
- name: cleanup
|
||||||
when:
|
|
||||||
- branch: master
|
|
||||||
event: push
|
|
||||||
image: appleboy/drone-ssh
|
image: appleboy/drone-ssh
|
||||||
settings:
|
settings:
|
||||||
host:
|
host:
|
||||||
|
|
@ -137,8 +119,8 @@ steps:
|
||||||
done
|
done
|
||||||
- echo "Cleanup completed"
|
- echo "Cleanup completed"
|
||||||
|
|
||||||
# trigger:
|
trigger:
|
||||||
# branch:
|
branch:
|
||||||
# - master
|
- master
|
||||||
# event:
|
event:
|
||||||
# - push
|
- push
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue