update : file CI/CD
All checks were successful
Deployment Verification / deploy-and-test (push) Successful in 1m12s

This commit is contained in:
Hubert Cornet 2025-01-03 20:49:30 +01:00
parent 49dd4eb1f8
commit 6ff6c00ee7

View File

@ -22,7 +22,6 @@ jobs:
- name: Create necessary Docker networks
run: |
docker network create back_network_${{ vars.APPLICATION_NAME }} || true
docker network create traefik_front_network || true
- name: Start up services using Docker Compose
@ -30,8 +29,7 @@ jobs:
# - name: Modify /etc/hosts for internal routing
# run: |
# echo "127.0.0.1 ${{ vars.APPLICATION_URL }}" | sudo tee -a /etc/hosts
# echo "127.0.0.1 dashboard.tips-of-mine.com" | sudo tee -a /etc/hosts
# echo "127.0.0.1 vault.tips-of-mine.com" | sudo tee -a /etc/hosts
- name: Print Docker Compose services status
run: docker ps
@ -39,11 +37,10 @@ jobs:
- name: Wait for the application to be ready via Traefik
run: |
echo "Checking the routing and availability of application via Traefik..."
timeout 5m bash -c 'while ! curl -fsSLk "https://${{ vars.APPLICATION_URL }}"; do echo "Waiting for the application to be ready..."; sleep 10; done'
timeout 5m bash -c 'while ! curl -fsSLk "https://vault.tips-of-mine.com"; do echo "Waiting for the application to be ready..."; sleep 10; done'
- name: Inspect Network Configuration
run: |
docker network inspect back_network_${{ vars.APPLICATION_NAME }}
docker network inspect traefik_front_network
- name: Shutdown Docker Compose services