restart container to pick up symlink changes
Some checks failed
Build and Deploy Hugo Site / deploy (push) Has been cancelled
Some checks failed
Build and Deploy Hugo Site / deploy (push) Has been cancelled
This commit is contained in:
parent
fe0a81bb4f
commit
2c5cc6607f
1 changed files with 10 additions and 1 deletions
|
|
@ -81,7 +81,16 @@ jobs:
|
|||
BUILD_TIME: ${{ steps.timestamp.outputs.BUILD_TIME }}
|
||||
run: |
|
||||
ssh -i ~/.ssh/deploy_key -p ${SSH_PORT} ${SSH_USER}@${SSH_HOST} \
|
||||
"ln -sfn ${DEPLOY_PATH}-${BUILD_TIME} ${DEPLOY_PATH}"
|
||||
"cd $(dirname ${DEPLOY_PATH}) && ln -sfn public-${BUILD_TIME} public"
|
||||
|
||||
- name: Restart blog container
|
||||
env:
|
||||
SSH_HOST: ${{ vars.SSH_HOST }}
|
||||
SSH_USER: ${{ vars.SSH_USER }}
|
||||
SSH_PORT: ${{ vars.SSH_PORT }}
|
||||
run: |
|
||||
ssh -i ~/.ssh/deploy_key -p ${SSH_PORT} ${SSH_USER}@${SSH_HOST} \
|
||||
"cd /home/eduardo_figueroa/homelab/compose/services/edfigdev-blog && docker compose restart"
|
||||
|
||||
- name: Clean up old deployments
|
||||
env:
|
||||
|
|
|
|||
Loading…
Reference in a new issue