From b422086bfd061be2290c622fcac8c23f7b0fe1a7 Mon Sep 17 00:00:00 2001 From: hcornet Date: Sun, 1 Dec 2024 21:55:55 +0100 Subject: [PATCH] first sync --- .gitea/workflows/ci-develop.yml | 21 +++++++++++++-------- docker-compose.yml | 3 --- 2 files changed, 13 insertions(+), 11 deletions(-) diff --git a/.gitea/workflows/ci-develop.yml b/.gitea/workflows/ci-develop.yml index 9728a42..9fa20c0 100644 --- a/.gitea/workflows/ci-develop.yml +++ b/.gitea/workflows/ci-develop.yml @@ -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_uptime-kuma || 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 uptime-kuma.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://uptime-kuma.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_uptime-kuma 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/* \ No newline at end of file + rm -rf /workspace/tips-of-mine/uptime-kuma/* \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index b277512..ebc7f26 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -14,9 +14,6 @@ services: - ./data:/app/data # - ./server:/app/server # - ./db:/app/db -# ports: - # : -# - 3001:3001 restart: unless-stopped networks: - traefik_front_network