test
This commit is contained in:
parent
040b34e9d1
commit
2c00c5ae22
@ -7,7 +7,7 @@ on:
|
|||||||
- develop
|
- develop
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
validate:
|
Validate:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
@ -15,9 +15,19 @@ jobs:
|
|||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
#
|
# https://github.com/docker/setup-qemu-action#usage
|
||||||
- name: Validate file docker-compose.yml
|
- name: Set up QEMU
|
||||||
|
uses: docker/setup-qemu-action@v3.2.0
|
||||||
|
with:
|
||||||
|
platforms: all
|
||||||
|
|
||||||
|
#
|
||||||
|
- name: Check the presence
|
||||||
run: |
|
run: |
|
||||||
|
if [ ! -f "docker-compose.yml" ]; then
|
||||||
|
echo "Error : file docker-compose.yml is missing."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
docker-compose config -q
|
docker-compose config -q
|
||||||
|
|
||||||
deploy-and-test:
|
deploy-and-test:
|
||||||
@ -31,11 +41,19 @@ jobs:
|
|||||||
# https://github.com/docker/setup-qemu-action#usage
|
# https://github.com/docker/setup-qemu-action#usage
|
||||||
- name: Set up QEMU
|
- name: Set up QEMU
|
||||||
uses: docker/setup-qemu-action@v3.2.0
|
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
|
# https://github.com/marketplace/actions/docker-setup-buildx
|
||||||
# - name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
# id: buildx
|
# id: buildx
|
||||||
# uses: docker/setup-buildx-action@v3.6.1
|
uses: docker/setup-buildx-action@v3.6.1
|
||||||
|
|
||||||
- name: Create necessary Docker networks
|
- name: Create necessary Docker networks
|
||||||
run: |
|
run: |
|
||||||
@ -60,7 +78,7 @@ jobs:
|
|||||||
- 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://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
|
- name: Inspect Network Configuration
|
||||||
run: |
|
run: |
|
||||||
@ -69,9 +87,9 @@ jobs:
|
|||||||
|
|
||||||
- name: Shutdown Docker Compose services
|
- name: Shutdown Docker Compose services
|
||||||
if: always()
|
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()
|
if: success()
|
||||||
run: |
|
run: |
|
||||||
git config user.name 'Gitea Actions'
|
git config user.name 'Gitea Actions'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user