From bea5190284373cdac46797957e298f0bec08afe5 Mon Sep 17 00:00:00 2001 From: hcornet Date: Thu, 30 Jan 2025 20:13:28 +0100 Subject: [PATCH] test --- .gitea/workflows/ci.yml | 24 +++++++++++++++++------- VERSION | 1 + 2 files changed, 18 insertions(+), 7 deletions(-) create mode 100644 VERSION diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index a57ac3f..d9e992c 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -30,7 +30,7 @@ jobs: fi docker compose config -q - deploy-and-test: + Deploy and Test: runs-on: ubuntu-latest steps: @@ -79,10 +79,10 @@ jobs: - name: Print Docker Compose services status run: docker ps - - 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://docuseal.tips-of-mine.com"; do echo "Waiting for the application to be ready..."; sleep 10; done' +# - 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://docuseal.tips-of-mine.com"; do echo "Waiting for the application to be ready..."; sleep 10; done' # - name: Inspect Network Configuration # run: | @@ -93,11 +93,21 @@ jobs: if: always() run: docker compose down + - name: Incrémenter le numéro de version + if: success() + run: | + current_version=$(cat VERSION) + new_version=$(echo "$current_version + 1" | bc) + echo "$new_version" > VERSION + git config user.name 'Gitea Actions' + git config user.email 'actions@gitea.io' + git add VERSION + git commit -m "Incrémentation automatique de la version à $new_version" + + - name: Fusionner dans main if: success() run: | - git config user.name 'Gitea Actions' - git config user.email 'actions@gitea.io' git checkout main git merge develop --no-ff -m "Fusion automatique de develop suite aux tests réussis" git push origin main diff --git a/VERSION b/VERSION new file mode 100644 index 0000000..d2c4b27 --- /dev/null +++ b/VERSION @@ -0,0 +1 @@ +1.8.7 \ No newline at end of file