Test CI v2.1.14
Some checks failed
Go CI Pipeline / Lint Code (push) Failing after 2s
Go CI Pipeline / Security Scan (SCA) (push) Failing after 6s
Go CI Pipeline / Run Tests (push) Failing after 5s
Go CI Pipeline / Build Application (push) Has been skipped
Network Connectivity Test (Updated) / Check Runner to Server Connectivity (push) Successful in 55s
DNS & Network Test / network-test (push) Successful in 20s
Some checks failed
Go CI Pipeline / Lint Code (push) Failing after 2s
Go CI Pipeline / Security Scan (SCA) (push) Failing after 6s
Go CI Pipeline / Run Tests (push) Failing after 5s
Go CI Pipeline / Build Application (push) Has been skipped
Network Connectivity Test (Updated) / Check Runner to Server Connectivity (push) Successful in 55s
DNS & Network Test / network-test (push) Successful in 20s
This commit is contained in:
parent
8686e225b0
commit
87fdaaaf71
@ -8,13 +8,16 @@ on:
|
||||
jobs:
|
||||
connectivity_check:
|
||||
name: Check Runner to Server Connectivity
|
||||
runs-on: linux-amd64 # Đảm bảo dùng cùng label với runner của bạn
|
||||
# IP Address của Gitea Server (lấy từ docker network inspect trước đó)
|
||||
# Quan trọng: Cập nhật nếu IP này thay đổi khi bạn tạo lại container
|
||||
runs-on: ubuntu-latest # Đảm bảo dùng cùng label với runner của bạn
|
||||
steps:
|
||||
- name: Wait a bit (optional)
|
||||
run: sleep 5 # Đợi 5 giây phòng trường hợp vẫn do timing
|
||||
|
||||
- name: Cập nhật và cài curl + dnsutils
|
||||
run: |
|
||||
apt update
|
||||
apt install -y curl dnsutils iputils-ping
|
||||
|
||||
- name: Install Network Tools & Debug Info
|
||||
id: debug_network
|
||||
run: |
|
||||
@ -55,27 +58,15 @@ jobs:
|
||||
env | grep -i proxy || echo "[INFO] No proxy environment variables found."
|
||||
echo "========== Network Debug Info End =========="
|
||||
# Không đặt continue-on-error nữa, nếu cài tool lỗi thì nên dừng lại
|
||||
|
||||
- name: Test Connection with Curl (server)
|
||||
run: curl -v -f --connect-timeout 10 http://server:3000 || echo "[ERROR] Curl to http://server:3000 failed"
|
||||
continue-on-error: true # Cho phép các bước sau vẫn chạy dù bước này lỗi
|
||||
|
||||
- name: Test Connection with Curl (gitea_server)
|
||||
run: curl -v -f --connect-timeout 10 http://gitea_server:3000 || echo "[ERROR] Curl to http://gitea_server:3000 failed"
|
||||
continue-on-error: true
|
||||
|
||||
- name: Test Connection with Curl (IP Address)
|
||||
run: curl -v -f --connect-timeout 10 http://${{ env.GITEA_SERVER_IP }}:3000 || echo "[ERROR] Curl to http://${{ env.GITEA_SERVER_IP }}:3000 failed"
|
||||
continue-on-error: true
|
||||
|
||||
- name: Test Connection with Git (server)
|
||||
run: git ls-remote http://server:3000/ulflow_phattt2901/matching_app/ || echo "[ERROR] Git ls-remote to http://server:3000 failed"
|
||||
continue-on-error: true
|
||||
|
||||
- name: Test Connection with Git (gitea_server)
|
||||
run: git ls-remote http://gitea_server:3000/ulflow_phattt2901/matching_app/ || echo "[ERROR] Git ls-remote to http://gitea_server:3000 failed"
|
||||
continue-on-error: true
|
||||
|
||||
- name: Test Connection with Git (IP Address)
|
||||
run: git ls-remote http://${{ env.GITEA_SERVER_IP }}:3000/ulflow_phattt2901/matching_app/ || echo "[ERROR] Git ls-remote to http://${{ env.GITEA_SERVER_IP }}:3000 failed"
|
||||
continue-on-error: true
|
||||
Loading…
x
Reference in New Issue
Block a user