test
This commit is contained in:
parent
040b34e9d1
commit
2c00c5ae22
@ -7,7 +7,7 @@ on:
|
||||
- develop
|
||||
|
||||
jobs:
|
||||
validate:
|
||||
Validate:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
@ -15,9 +15,19 @@ jobs:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
#
|
||||
- name: Validate file docker-compose.yml
|
||||
# https://github.com/docker/setup-qemu-action#usage
|
||||
- name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v3.2.0
|
||||
with:
|
||||
platforms: all
|
||||
|
||||
#
|
||||
- name: Check the presence
|
||||
run: |
|
||||
if [ ! -f "docker-compose.yml" ]; then
|
||||
echo "Error : file docker-compose.yml is missing."
|
||||
exit 1
|
||||
fi
|
||||
docker-compose config -q
|
||||
|
||||
deploy-and-test:
|
||||
@ -31,11 +41,19 @@ jobs:
|
||||
# https://github.com/docker/setup-qemu-action#usage
|
||||
- name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v3.2.0
|
||||
with:
|
||||
platforms: all
|
||||
|
||||
#
|
||||
- name: Installer Docker Compose
|
||||
run: |
|
||||
apt-get update
|
||||
apt-get install -y docker-compose
|
||||
|
||||
# https://github.com/marketplace/actions/docker-setup-buildx
|
||||
# - name: Set up Docker Buildx
|
||||
- name: Set up Docker Buildx
|
||||
# id: buildx
|
||||
# uses: docker/setup-buildx-action@v3.6.1
|
||||
uses: docker/setup-buildx-action@v3.6.1
|
||||
|
||||
- name: Create necessary Docker networks
|
||||
run: |
|
||||
@ -60,7 +78,7 @@ 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://gitea.tips-of-mine.com"; do echo "Waiting for the application to be ready..."; sleep 10; done'
|
||||
timeout 5m bash -c 'while ! curl -fsSLk "https://docuseal.tips-of-mine.com"; do echo "Waiting for the application to be ready..."; sleep 10; done'
|
||||
|
||||
- name: Inspect Network Configuration
|
||||
run: |
|
||||
@ -69,9 +87,9 @@ jobs:
|
||||
|
||||
- name: Shutdown Docker Compose services
|
||||
if: always()
|
||||
run: docker compose -f docker-compose.yml down
|
||||
run: docker compose down
|
||||
|
||||
- name: Fusionner dans main (si les tests réussissent)
|
||||
- name: Fusionner dans main
|
||||
if: success()
|
||||
run: |
|
||||
git config user.name 'Gitea Actions'
|
||||
|
Loading…
x
Reference in New Issue
Block a user