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: |
docker build -t chesco-site:latest -f docker/Dockerfile .
- name: Sync to Host Directory
- name: Deploy Container
run: |
# Create the directory if it doesn't exist
mkdir -p ~/chesco
# We use direct docker commands here because they work over the socket
# without needing files to be physically present on the host's disk.
# Copy the compose file to the host directory
cp docker/docker-compose.yaml ~/chesco/docker-compose.yaml
docker stop chesco-site || true
docker rm chesco-site || true
- name: Deploy with Compose
run: |
# Move into the dedicated directory and restart the service
cd ~/chesco
docker compose up -d --force-recreate
docker run -d \
--name chesco-site \
--restart always \
-p 8081:80 \
chesco-site:latest