Apply pipeline best practices
This commit is contained in:
parent
81aeb21a96
commit
f0df8f6f5b
1 changed files with 14 additions and 6 deletions
|
|
@ -1,5 +1,8 @@
|
|||
steps:
|
||||
clear-target-directory:
|
||||
when:
|
||||
- branch: main
|
||||
event: push
|
||||
image: appleboy/drone-ssh
|
||||
settings:
|
||||
host:
|
||||
|
|
@ -14,6 +17,9 @@ steps:
|
|||
- echo "Target directory cleared"
|
||||
|
||||
copy-resume:
|
||||
when:
|
||||
- branch: main
|
||||
event: push
|
||||
image: appleboy/drone-scp
|
||||
settings:
|
||||
host:
|
||||
|
|
@ -28,6 +34,9 @@ steps:
|
|||
- resumes/Murtadha.pdf
|
||||
|
||||
confirm-deployment:
|
||||
when:
|
||||
- branch: main
|
||||
event: push
|
||||
image: appleboy/drone-ssh
|
||||
settings:
|
||||
host:
|
||||
|
|
@ -41,9 +50,8 @@ steps:
|
|||
- echo "Verifying deployment..."
|
||||
- ls -l /home/mnisyif/docker-containers/mnisyif/mnisyif/frontend/dist/assets/
|
||||
- echo "Resume successfully deployed!"
|
||||
|
||||
trigger:
|
||||
branch:
|
||||
- main
|
||||
event:
|
||||
- push
|
||||
# trigger:
|
||||
# branch:
|
||||
# - main
|
||||
# event:
|
||||
# - push
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue