Skip to content

Commit 17f09a0

Browse files
committed
fix: use SERVER_HOST secret for alastor SSH address
1 parent 9a35d99 commit 17f09a0

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/deploy.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ jobs:
4747
- name: Deploy to alastor
4848
env:
4949
DEPLOY_KEY: ${{ secrets.WIT_CALENDAR_DEPLOY_KEY }}
50+
SERVER_HOST: ${{ secrets.SERVER_HOST }}
5051
IMAGE: ghcr.io/witcodingclub/calendar-backend:${{ github.sha }}
5152
run: |
5253
mkdir -p ~/.ssh
@@ -56,6 +57,6 @@ jobs:
5657
ssh -i ~/.ssh/deploy_key \
5758
-o StrictHostKeyChecking=no \
5859
-o ConnectTimeout=10 \
59-
wit-calendar-deploy@alastor \
60+
wit-calendar-deploy@"$SERVER_HOST" \
6061
"echo '$IMAGE' > /var/lib/wit-calendar/image-ref && \
6162
sudo systemctl restart wit-calendar-web"

0 commit comments

Comments
 (0)