We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a843e7b commit 0695ad2Copy full SHA for 0695ad2
1 file changed
.github/workflows/deploy.yml
@@ -33,12 +33,9 @@ jobs:
33
- name: Deploy website
34
run: |
35
MACHINE_IP="$(tailscale ip -4 $MACHINE_NAME)"
36
- ssh -i ~/.ssh/key "kenneth@$MACHINE_IP" /bin/bash << EOF
+ ssh -i ~/.ssh/key "$MACHINE_USER_NAME:@$MACHINE_IP" /bin/bash << EOF
37
cd /opt/website
38
git pull
39
- docker build -t website .
40
- docker stop website-container
41
- docker rm website-container
42
- docker run --name=website-container --restart=always --publish 5432:80 --detach website
+ cd ../
+ docker compose up --build --detach website
43
EOF
44
-
0 commit comments