This commit is contained in:
@@ -36,15 +36,18 @@ steps:
|
|||||||
# matching your existing containers.
|
# matching your existing containers.
|
||||||
COMPOSE_PROJECT_NAME: acrybot # Changed to lowercase 'acrybot'
|
COMPOSE_PROJECT_NAME: acrybot # Changed to lowercase 'acrybot'
|
||||||
commands:
|
commands:
|
||||||
|
- echo "--- Building 'python-app' image without cache to ensure latest code ---"
|
||||||
|
# Explicitly build the image for 'python-app' with --no-cache
|
||||||
|
- docker compose build --no-cache python-app
|
||||||
|
|
||||||
- echo "--- Stopping Discord bot service python-app ---"
|
- echo "--- Stopping Discord bot service python-app ---"
|
||||||
# Stop the specific Discord bot service using the unhyphenated 'docker compose'.
|
# Stop the specific Discord bot service using the unhyphenated 'docker compose'.
|
||||||
- docker compose stop python-app
|
- docker compose stop python-app
|
||||||
|
|
||||||
- echo "--- Bringing Discord bot service up python-app ---"
|
- echo "--- Bringing Discord bot service up python-app ---"
|
||||||
# Bring the specific Discord bot service back up using the unhyphenated 'docker compose'.
|
# Bring the specific Discord bot service back up using the unhyphenated 'docker compose'.
|
||||||
# '--build' is essential if your docker-compose.yml uses 'build: .' to create the image,
|
# '--build' is no longer needed here as it was already forced by 'docker compose build --no-cache'.
|
||||||
# as it ensures the image is rebuilt with the newly pulled source code.
|
- docker compose up -d python-app
|
||||||
- docker compose up -d python-app --build
|
|
||||||
|
|
||||||
- echo "--- Verifying bot status ---"
|
- echo "--- Verifying bot status ---"
|
||||||
# Directly check the status of the service using docker compose ps
|
# Directly check the status of the service using docker compose ps
|
||||||
|
|||||||
Reference in New Issue
Block a user