first sync
All checks were successful
Deployment Verification / deploy-and-test (push) Successful in 39s

This commit is contained in:
2024-11-28 20:38:06 +01:00
parent 385c849c2a
commit 31ef331ab7
4 changed files with 171 additions and 34 deletions

View File

@ -14,15 +14,21 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
- name: Checkout
uses: actions/checkout@v4
# https://github.com/docker/setup-qemu-action#usage
- name: Set up QEMU
uses: docker/setup-qemu-action@v3.2.0
# https://github.com/marketplace/actions/docker-setup-buildx
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
id: buildx
uses: docker/setup-buildx-action@v3.6.1
- name: Create necessary Docker networks
run: |
docker network create back_network || true
docker network create back_network_guacamole || true
docker network create traefik_front_network || true
- name: Start up services using Docker Compose
@ -30,8 +36,7 @@ jobs:
# - name: Modify /etc/hosts for internal routing
# run: |
# echo "127.0.0.1 gitea.tips-of-mine.com" | sudo tee -a /etc/hosts
# echo "127.0.0.1 dashboard.tips-of-mine.com" | sudo tee -a /etc/hosts
# echo "127.0.0.1 guacamole.tips-of-mine.com" | sudo tee -a /etc/hosts
- name: Print Docker Compose services status
run: docker ps
@ -39,11 +44,11 @@ jobs:
- 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://metabase.tips-of-mine.com"; do echo "Waiting for the application to be ready..."; sleep 10; done'
timeout 5m bash -c 'while ! curl -fsSLk "https://guacamole.tips-of-mine.com"; do echo "Waiting for the application to be ready..."; sleep 10; done'
- name: Inspect Network Configuration
run: |
docker network inspect back_network
docker network inspect back_network_guacamole
docker network inspect traefik_front_network
- name: Shutdown Docker Compose services
@ -54,4 +59,4 @@ jobs:
if: always()
run: |
docker compose --profile setup down
rm -rf /workspace/tips-of-mine/metabase/*
rm -rf /workspace/tips-of-mine/guacamole/*

View File

@ -14,11 +14,17 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
- name: Checkout
uses: actions/checkout@v4
# https://github.com/docker/setup-qemu-action#usage
- name: Set up QEMU
uses: docker/setup-qemu-action@v3.2.0
# https://github.com/marketplace/actions/docker-setup-buildx
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
id: buildx
uses: docker/setup-buildx-action@v3.6.1
- name: Create necessary Docker networks
run: |