test
This commit is contained in:
parent
3101c9ea76
commit
bea5190284
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user