migrate to docker compose
Some checks failed
/ Deploy website to server (push) Failing after 1m37s

This commit is contained in:
2025-05-27 15:48:18 +01:00
parent a843e7b902
commit 0695ad26bd

View File

@@ -33,12 +33,9 @@ jobs:
- name: Deploy website
run: |
MACHINE_IP="$(tailscale ip -4 $MACHINE_NAME)"
ssh -i ~/.ssh/key "kenneth@$MACHINE_IP" /bin/bash << EOF
ssh -i ~/.ssh/key "$MACHINE_USER_NAME:@$MACHINE_IP" /bin/bash << EOF
cd /opt/website
git pull
docker build -t website .
docker stop website-container
docker rm website-container
docker run --name=website-container --restart=always --publish 5432:80 --detach website
cd ../
docker compose up --build --detach website
EOF