mirror of
https://github.com/skylanix/MamieHenriette.git
synced 2026-02-06 14:50:34 +01:00
TEST échec CI
This commit is contained in:
26
.github/workflows/docker-build.yml
vendored
26
.github/workflows/docker-build.yml
vendored
@@ -54,4 +54,28 @@ jobs:
|
||||
context: .
|
||||
push: true
|
||||
tags: ${{ steps.meta.outputs.tags }}
|
||||
labels: ${{ steps.meta.outputs.labels }}
|
||||
labels: ${{ steps.meta.outputs.labels }}
|
||||
|
||||
- name: Test container startup
|
||||
run: |
|
||||
echo "Testing if the container starts successfully..."
|
||||
docker run --rm -d --name test-container -p 5001:5000 \
|
||||
-e TZ=Europe/Paris \
|
||||
-e ENABLE_ZABBIX=false \
|
||||
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
|
||||
|
||||
# Wait for container to be ready
|
||||
sleep 10
|
||||
|
||||
# Check if container is still running
|
||||
if docker ps | grep test-container; then
|
||||
echo "✅ Container started successfully"
|
||||
docker logs test-container
|
||||
else
|
||||
echo "❌ Container failed to start"
|
||||
docker logs test-container
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Stop the test container
|
||||
docker stop test-container
|
||||
Reference in New Issue
Block a user