first sync
All checks were successful
Deployment Verification / deploy-and-test (push) Successful in 47s
All checks were successful
Deployment Verification / deploy-and-test (push) Successful in 47s
This commit is contained in:
parent
ff9b7cd84f
commit
b422086bfd
@ -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/*
|
||||
rm -rf /workspace/tips-of-mine/uptime-kuma/*
|
@ -14,9 +14,6 @@ services:
|
||||
- ./data:/app/data
|
||||
# - ./server:/app/server
|
||||
# - ./db:/app/db
|
||||
# ports:
|
||||
# <Host Port>:<Container Port>
|
||||
# - 3001:3001
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
- traefik_front_network
|
||||
|
Loading…
x
Reference in New Issue
Block a user