This commit is contained in:
Hubert Cornet 2025-01-30 20:13:28 +01:00
parent 3101c9ea76
commit bea5190284
2 changed files with 18 additions and 7 deletions

View File

@ -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

1
VERSION Normal file
View File

@ -0,0 +1 @@
1.8.7