restart container to pick up symlink changes
Some checks failed
Build and Deploy Hugo Site / deploy (push) Has been cancelled

This commit is contained in:
Eduardo Figueroa 2026-03-27 07:36:26 -07:00
parent fe0a81bb4f
commit 2c5cc6607f

View file

@ -81,7 +81,16 @@ jobs:
BUILD_TIME: ${{ steps.timestamp.outputs.BUILD_TIME }} BUILD_TIME: ${{ steps.timestamp.outputs.BUILD_TIME }}
run: | run: |
ssh -i ~/.ssh/deploy_key -p ${SSH_PORT} ${SSH_USER}@${SSH_HOST} \ 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 - name: Clean up old deployments
env: env: