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
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
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
|
- 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
|
- name: Create necessary Docker networks
|
||||||
run: |
|
run: |
|
||||||
docker network create back_network || true
|
docker network create back_network_uptime-kuma || true
|
||||||
docker network create traefik_front_network || true
|
docker network create traefik_front_network || true
|
||||||
|
|
||||||
- name: Start up services using Docker Compose
|
- name: Start up services using Docker Compose
|
||||||
@ -30,8 +36,7 @@ jobs:
|
|||||||
|
|
||||||
# - name: Modify /etc/hosts for internal routing
|
# - name: Modify /etc/hosts for internal routing
|
||||||
# run: |
|
# run: |
|
||||||
# echo "127.0.0.1 gitea.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
|
||||||
# echo "127.0.0.1 dashboard.tips-of-mine.com" | sudo tee -a /etc/hosts
|
|
||||||
|
|
||||||
- name: Print Docker Compose services status
|
- name: Print Docker Compose services status
|
||||||
run: docker ps
|
run: docker ps
|
||||||
@ -39,11 +44,11 @@ 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://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
|
- name: Inspect Network Configuration
|
||||||
run: |
|
run: |
|
||||||
docker network inspect back_network
|
docker network inspect back_network_uptime-kuma
|
||||||
docker network inspect traefik_front_network
|
docker network inspect traefik_front_network
|
||||||
|
|
||||||
- name: Shutdown Docker Compose services
|
- name: Shutdown Docker Compose services
|
||||||
@ -54,4 +59,4 @@ jobs:
|
|||||||
if: always()
|
if: always()
|
||||||
run: |
|
run: |
|
||||||
docker compose --profile setup down
|
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
|
- ./data:/app/data
|
||||||
# - ./server:/app/server
|
# - ./server:/app/server
|
||||||
# - ./db:/app/db
|
# - ./db:/app/db
|
||||||
# ports:
|
|
||||||
# <Host Port>:<Container Port>
|
|
||||||
# - 3001:3001
|
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
networks:
|
networks:
|
||||||
- traefik_front_network
|
- traefik_front_network
|
||||||
|
Loading…
x
Reference in New Issue
Block a user