Simplify deployment to direct docker run for containerized runners
Build and Deploy / deploy (push) Failing after 39s

This commit is contained in:
CalebLewallen
2026-05-14 10:27:03 -04:00
parent bb26f9f91c
commit 0710fd3ce0
+10 -10
View File
@@ -15,16 +15,16 @@ jobs:
run: | run: |
docker build -t chesco-site:latest -f docker/Dockerfile . docker build -t chesco-site:latest -f docker/Dockerfile .
- name: Sync to Host Directory - name: Deploy Container
run: | run: |
# Create the directory if it doesn't exist # We use direct docker commands here because they work over the socket
mkdir -p ~/chesco # without needing files to be physically present on the host's disk.
# Copy the compose file to the host directory docker stop chesco-site || true
cp docker/docker-compose.yaml ~/chesco/docker-compose.yaml docker rm chesco-site || true
- name: Deploy with Compose docker run -d \
run: | --name chesco-site \
# Move into the dedicated directory and restart the service --restart always \
cd ~/chesco -p 8081:80 \
docker compose up -d --force-recreate chesco-site:latest