This commit is contained in:
@@ -8,33 +8,33 @@ when:
|
|||||||
event: push
|
event: push
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: debug-compose-environment # A new step for diagnostics
|
# - name: debug-compose-environment # A new step for diagnostics
|
||||||
image: docker
|
# image: docker
|
||||||
volumes:
|
# volumes:
|
||||||
- /var/run/docker.sock:/var/run/docker.sock
|
# - /var/run/docker.sock:/var/run/docker.sock
|
||||||
- /home/gary/Discord/Acrybot:/app
|
# - /home/gary/Discord/Acrybot:/app
|
||||||
commands:
|
# commands:
|
||||||
- echo "--- Checking environment within pipeline container ---"
|
# - echo "--- Checking environment within pipeline container ---"
|
||||||
- pwd # Should be /
|
# - pwd # Should be /
|
||||||
- cd /app
|
# - cd /app
|
||||||
- pwd # Should be /app
|
# - pwd # Should be /app
|
||||||
- echo "Contents of /app (your mounted Docker Compose directory):"
|
# - echo "Contents of /app (your mounted Docker Compose directory):"
|
||||||
- ls -la # Verify docker-compose.yml is here
|
# - ls -la # Verify docker-compose.yml is here
|
||||||
- echo "--- Displaying content of docker-compose.yml (for verification) ---"
|
# - echo "--- Displaying content of docker-compose.yml (for verification) ---"
|
||||||
- cat docker-compose.yml # Display the content of the Compose file
|
# - cat docker-compose.yml # Display the content of the Compose file
|
||||||
- echo "Docker CLI Version:"
|
# - echo "Docker CLI Version:"
|
||||||
- docker --version
|
# - docker --version
|
||||||
- echo "Docker Compose CLI Version:"
|
# - echo "Docker Compose CLI Version:"
|
||||||
- docker compose version
|
# - docker compose version
|
||||||
- echo "--- Listing Docker Compose services (running and stopped) in this project context ---"
|
# - echo "--- Listing Docker Compose services (running and stopped) in this project context ---"
|
||||||
# This command lists all services (running and stopped) that docker compose finds in /app
|
# # This command lists all services (running and stopped) that docker compose finds in /app
|
||||||
- docker compose ps -a
|
# - docker compose ps -a
|
||||||
# IMPORTANT: If 'docker compose ps -a' shows an empty list or doesn't list your service,
|
# # IMPORTANT: If 'docker compose ps -a' shows an empty list or doesn't list your service,
|
||||||
# it means Docker Compose isn't managing the running bot service from this specific
|
# # it means Docker Compose isn't managing the running bot service from this specific
|
||||||
# docker-compose.yml file.
|
# # docker-compose.yml file.
|
||||||
- echo "--- Listing ALL Docker containers on the host (regardless of Compose project) ---"
|
# - echo "--- Listing ALL Docker containers on the host (regardless of Compose project) ---"
|
||||||
- docker ps -a # This lists ALL containers, including those not managed by Compose.
|
# - docker ps -a # This lists ALL containers, including those not managed by Compose.
|
||||||
- echo "--- Attempting to restart the specific bot service ---"
|
# - echo "--- Attempting to restart the specific bot service ---"
|
||||||
|
|
||||||
- name: restart-bot
|
- name: restart-bot
|
||||||
image: docker # Image with Docker Compose
|
image: docker # Image with Docker Compose
|
||||||
@@ -44,4 +44,4 @@ steps:
|
|||||||
- /home/gary/Discord/Acrybot:/app # Maps named volume 'docker_compose_dir' to container path
|
- /home/gary/Discord/Acrybot:/app # Maps named volume 'docker_compose_dir' to container path
|
||||||
commands:
|
commands:
|
||||||
- cd /app
|
- cd /app
|
||||||
- docker compose restart python-app
|
- docker compose down
|
||||||
|
|||||||
Reference in New Issue
Block a user