From 130ae630aaa4d9e06b74cd37ca07c6eefc497964 Mon Sep 17 00:00:00 2001 From: amass <168062547@qq.com> Date: Thu, 14 Nov 2024 00:05:09 +0800 Subject: [PATCH] add tcping for ubuntu24.04 --- .gitea/workflows/deploy.yaml | 6 +++++- .gitea/workflows/docker.yaml | 5 ++++- Dockerfiles/ubuntu2404.dockerfile | 4 ++++ 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml index f565ecb..c5756b3 100755 --- a/.gitea/workflows/deploy.yaml +++ b/.gitea/workflows/deploy.yaml @@ -1,6 +1,10 @@ name: Deploy run-name: build and deploy app to server. -on: [push] +on: + push: + paths: + - '**.cpp' + - '**.h' jobs: Build: runs-on: [ubuntu-latest, ubuntu-24.04] diff --git a/.gitea/workflows/docker.yaml b/.gitea/workflows/docker.yaml index 1524a96..1c25b10 100644 --- a/.gitea/workflows/docker.yaml +++ b/.gitea/workflows/docker.yaml @@ -1,6 +1,9 @@ name: Deploy Docker Images run-name: build and deploy docker image to server. -on: [push] +on: + push: + paths: + - '**.dockerfile' jobs: Build dockerfile and Server deploy: runs-on: ubuntu-latest diff --git a/Dockerfiles/ubuntu2404.dockerfile b/Dockerfiles/ubuntu2404.dockerfile index 42c3d7d..a494902 100644 --- a/Dockerfiles/ubuntu2404.dockerfile +++ b/Dockerfiles/ubuntu2404.dockerfile @@ -101,6 +101,10 @@ RUN cd /root \ && cmake --install build \ && rm -fr /root/wt-${WT_VERSION}* +RUN wget https://github.com/pouriyajamshidi/tcping/releases/download/v2.6.0/tcping_Linux.tar.gz -O /tmp/tcping_Linux.tar.gz \ + && tar -xzf /tmp/tcping_Linux.tar.gz -C /usr/bin \ + && rm /tmp/tcping_Linux.tar.gz + RUN cd /root \ && git clone --depth=1 --recursive https://github.com/ZLMediaKit/ZLMediaKit.git \ && cd /root/ZLMediaKit \