test
This commit is contained in:
parent
3101c9ea76
commit
bea5190284
@ -30,7 +30,7 @@ jobs:
|
|||||||
fi
|
fi
|
||||||
docker compose config -q
|
docker compose config -q
|
||||||
|
|
||||||
deploy-and-test:
|
Deploy and Test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
@ -79,10 +79,10 @@ jobs:
|
|||||||
- name: Print Docker Compose services status
|
- name: Print Docker Compose services status
|
||||||
run: docker ps
|
run: docker ps
|
||||||
|
|
||||||
- name: Wait for the application to be ready via Traefik
|
# - name: Wait for the application to be ready via Traefik
|
||||||
run: |
|
# run: |
|
||||||
echo "Checking the routing and availability of application via Traefik..."
|
# 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'
|
# 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
|
# - name: Inspect Network Configuration
|
||||||
# run: |
|
# run: |
|
||||||
@ -93,11 +93,21 @@ jobs:
|
|||||||
if: always()
|
if: always()
|
||||||
run: docker compose down
|
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
|
- name: Fusionner dans main
|
||||||
if: success()
|
if: success()
|
||||||
run: |
|
run: |
|
||||||
git config user.name 'Gitea Actions'
|
|
||||||
git config user.email 'actions@gitea.io'
|
|
||||||
git checkout main
|
git checkout main
|
||||||
git merge develop --no-ff -m "Fusion automatique de develop suite aux tests réussis"
|
git merge develop --no-ff -m "Fusion automatique de develop suite aux tests réussis"
|
||||||
git push origin main
|
git push origin main
|
||||||
|
Loading…
x
Reference in New Issue
Block a user