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 \