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