Refactor pipeline script
This commit is contained in:
parent
f299a1467e
commit
dc780a3ec4
1 changed files with 4 additions and 5 deletions
|
|
@ -6,7 +6,7 @@ steps:
|
||||||
- npm run build
|
- npm run build
|
||||||
- echo "VERSION=$(cat version.txt)" > .env
|
- echo "VERSION=$(cat version.txt)" > .env
|
||||||
|
|
||||||
clear-from-host:
|
clear-from-host:
|
||||||
image: appleboy/drone-ssh
|
image: appleboy/drone-ssh
|
||||||
settings:
|
settings:
|
||||||
host:
|
host:
|
||||||
|
|
@ -37,8 +37,7 @@ steps:
|
||||||
- dist/
|
- dist/
|
||||||
- nginx.conf
|
- nginx.conf
|
||||||
- version.txt
|
- version.txt
|
||||||
|
deploy:
|
||||||
deploy:
|
|
||||||
image: appleboy/drone-ssh
|
image: appleboy/drone-ssh
|
||||||
settings:
|
settings:
|
||||||
host:
|
host:
|
||||||
|
|
@ -68,7 +67,7 @@ steps:
|
||||||
- docker tag nginx:alpine frontend:$VERSION
|
- docker tag nginx:alpine frontend:$VERSION
|
||||||
- echo "Deployment completed"
|
- echo "Deployment completed"
|
||||||
|
|
||||||
confirm-deployment:
|
confirm-deployment:
|
||||||
image: appleboy/drone-ssh
|
image: appleboy/drone-ssh
|
||||||
settings:
|
settings:
|
||||||
host:
|
host:
|
||||||
|
|
@ -98,7 +97,7 @@ steps:
|
||||||
- curl -I http://localhost:5173 || { echo "HTTP request failed"; exit 1; }
|
- curl -I http://localhost:5173 || { echo "HTTP request failed"; exit 1; }
|
||||||
- echo "Deployment confirmed successfully"
|
- echo "Deployment confirmed successfully"
|
||||||
|
|
||||||
cleanup:
|
cleanup:
|
||||||
image: appleboy/drone-ssh
|
image: appleboy/drone-ssh
|
||||||
settings:
|
settings:
|
||||||
host:
|
host:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue