From 2c00c5ae221c646950f4c670bb0591aeae3a8c0f Mon Sep 17 00:00:00 2001 From: hcornet Date: Thu, 30 Jan 2025 19:48:45 +0100 Subject: [PATCH] test --- .gitea/workflows/ci.yml | 34 ++++++++++++++++++++++++++-------- 1 file changed, 26 insertions(+), 8 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 5c9a16d..9e5021d 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -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'