ci: simplify deploy — direct docker run via build runner, no SSH
CI / TypeScript — type-check (push) Successful in 7s
CI / Publish — build & push image (push) Successful in 8s
CI / Deploy — pull & restart on host (push) Failing after 0s

This commit is contained in:
Christian Manivong
2026-06-28 10:40:51 +02:00
parent 7ac530a691
commit 6a92cacde1
+8 -8
View File
@@ -55,18 +55,18 @@ jobs:
runs-on: build
needs: [publish]
steps:
- uses: actions/checkout@v4
- name: Login to registry
run: echo "${{ secrets.REGISTRY_PASSWORD }}" | docker login registry.netork.io -u "${{ secrets.REGISTRY_USER }}" --password-stdin
- name: Deploy
- name: Pull & restart
run: |
mkdir -p /opt/netork-website
cp docker-compose.yml /opt/netork-website/docker-compose.yml
cd /opt/netork-website
docker compose pull
docker compose up -d --remove-orphans
docker pull registry.netork.io/netork/website:latest
docker rm -f netork-website 2>/dev/null || true
docker run -d \
--name netork-website \
--restart unless-stopped \
--network proxy-net \
registry.netork.io/netork/website:latest
- name: Logout
if: always()