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
|
||||
- echo "VERSION=$(cat version.txt)" > .env
|
||||
|
||||
clear-from-host:
|
||||
clear-from-host:
|
||||
image: appleboy/drone-ssh
|
||||
settings:
|
||||
host:
|
||||
|
|
@ -37,8 +37,7 @@ steps:
|
|||
- dist/
|
||||
- nginx.conf
|
||||
- version.txt
|
||||
|
||||
deploy:
|
||||
deploy:
|
||||
image: appleboy/drone-ssh
|
||||
settings:
|
||||
host:
|
||||
|
|
@ -68,7 +67,7 @@ steps:
|
|||
- docker tag nginx:alpine frontend:$VERSION
|
||||
- echo "Deployment completed"
|
||||
|
||||
confirm-deployment:
|
||||
confirm-deployment:
|
||||
image: appleboy/drone-ssh
|
||||
settings:
|
||||
host:
|
||||
|
|
@ -98,7 +97,7 @@ steps:
|
|||
- curl -I http://localhost:5173 || { echo "HTTP request failed"; exit 1; }
|
||||
- echo "Deployment confirmed successfully"
|
||||
|
||||
cleanup:
|
||||
cleanup:
|
||||
image: appleboy/drone-ssh
|
||||
settings:
|
||||
host:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue