From 1aa8c83d58a489538aa2b25671a609d899423111 Mon Sep 17 00:00:00 2001 From: bjdgy Date: Wed, 31 Jan 2024 22:56:59 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dgo=20test=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/release.yml | 5 +++++ docker/Dockerfile | 2 +- version_info | 1 + 3 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 version_info diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 144062e5..583679d3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -54,6 +54,11 @@ jobs: echo "APP_VER=$appVer" >> $GITHUB_ENV echo "commitId=$commitId" >> $GITHUB_ENV + echo $appVer > version_info + echo $commitId >> version_info + echo $GITHUB_REF >> version_info + echo $GITHUB_REF_NAME >> version_info + #cd server;go mod tidy - name: Build and push diff --git a/docker/Dockerfile b/docker/Dockerfile index 866de074..08809ad2 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -37,7 +37,7 @@ WORKDIR /app COPY docker/init_release.sh /tmp/ COPY --from=builder_golang /server/anylink /app/ -COPY docker/docker_entrypoint.sh server/bridge-init.sh ./README.md ./LICENSE /app/ +COPY docker/docker_entrypoint.sh server/bridge-init.sh ./README.md ./LICENSE version_info /app/ COPY ./deploy /app/deploy COPY ./index_template /app/index_template COPY ./server/conf /app/conf diff --git a/version_info b/version_info new file mode 100644 index 00000000..285be7ca --- /dev/null +++ b/version_info @@ -0,0 +1 @@ +version_info