Add a pipeline, and updated resume
This commit is contained in:
parent
e34993e01d
commit
5ae42b4460
3 changed files with 74 additions and 43 deletions
49
.woodpecker.yml
Normal file
49
.woodpecker.yml
Normal file
|
|
@ -0,0 +1,49 @@
|
|||
pipeline:
|
||||
clear-target-directory:
|
||||
image: appleboy/drone-ssh
|
||||
settings:
|
||||
host:
|
||||
from_secret: ssh_host
|
||||
username:
|
||||
from_secret: ssh_username
|
||||
key:
|
||||
from_secret: ssh_key
|
||||
port: 2332
|
||||
script:
|
||||
- rm -f /home/mnisyif/docker-containers/mnisyif/mnisyif/frontend/dist/assets/Murtadha.pdf
|
||||
- echo "Target directory cleared"
|
||||
|
||||
copy-resume:
|
||||
image: appleboy/drone-scp
|
||||
settings:
|
||||
host:
|
||||
from_secret: ssh_host
|
||||
username:
|
||||
from_secret: ssh_username
|
||||
key:
|
||||
from_secret: ssh_key
|
||||
port: 2332
|
||||
target: /home/mnisyif/docker-containers/mnisyif/mnisyif/frontend/dist/assets/
|
||||
source:
|
||||
- Murtadha.pdf
|
||||
|
||||
confirm-deployment:
|
||||
image: appleboy/drone-ssh
|
||||
settings:
|
||||
host:
|
||||
from_secret: ssh_host
|
||||
username:
|
||||
from_secret: ssh_username
|
||||
key:
|
||||
from_secret: ssh_key
|
||||
port: 2332
|
||||
script:
|
||||
- echo "Verifying deployment..."
|
||||
- ls -l /home/mnisyif/docker-containers/mnisyif/mnisyif/frontend/dist/assets/Murtadha.pdf
|
||||
- echo "Resume successfully deployed!"
|
||||
|
||||
trigger:
|
||||
branch:
|
||||
- main
|
||||
event:
|
||||
- push
|
||||
Loading…
Add table
Add a link
Reference in a new issue