From 94ec6cd212c7d7ab1031a02aca2109b36921deaa Mon Sep 17 00:00:00 2001 From: "Xinwei Xiong(cubxxw-openim)" <3293172751nss@gmail.com> Date: Wed, 9 Aug 2023 21:12:26 +0800 Subject: [PATCH] fix: chat scripts path bug Signed-off-by: Xinwei Xiong(cubxxw-openim) <3293172751nss@gmail.com> --- .github/workflows/release.yml | 2 ++ build/docker/openim-api/Dockerfile | 5 ++++- scripts/template/head.md.tmpl | 4 ++-- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ce6d9166e..3e126bc93 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -46,7 +46,9 @@ jobs: workdir: . args: release -f ./build/goreleaser.yaml --rm-dist --clean --release-footer-tmpl=scripts/template/footer.md.tmpl --release-header-tmpl=scripts/template/head.md.tmpl env: + USERNAME: ${{ github.repository_owner }} GITHUB_TOKEN: ${{ secrets.BOT_GITHUB_TOKEN }} + FURY_TOKEN: ${{ secrets.FURY_TOKEN }} # Your GoReleaser Pro key, if you are using the 'goreleaser-pro' # distribution: # GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }} diff --git a/build/docker/openim-api/Dockerfile b/build/docker/openim-api/Dockerfile index 7b2a4bd8e..420a71557 100644 --- a/build/docker/openim-api/Dockerfile +++ b/build/docker/openim-api/Dockerfile @@ -34,10 +34,13 @@ COPY . . RUN make clean RUN make build BINS=openim-api -FROM ghcr.io/openim-sigs/openim-bash-image:latest +# FROM ghcr.io/openim-sigs/openim-bash-image:latest +FROM test:v1 WORKDIR /openim/openim-server +RUN mkdir -p /openim/openim-server/$(cat ~/os)/$(cat ~/arch)/bin +RUN mkdir -p /openim/openim-server/go/$(go env GOOS)/$(go env GOARCH)/bin COPY --from=builder /openim/openim-server/_output/bin/platforms /openim/openim-server/_output/bin/platforms COPY --from=builder /openim/openim-server/config /openim/openim-server/config diff --git a/scripts/template/head.md.tmpl b/scripts/template/head.md.tmpl index 9bad4d8d8..d5cc58829 100644 --- a/scripts/template/head.md.tmpl +++ b/scripts/template/head.md.tmpl @@ -1,6 +1,6 @@ -## Welcome to the {{ .Tag }} release of [OpenIM](https://github.com/{{ .Env.USERNAME }}/{{ .ProjectName }})!🎉🎉! +## Welcome to the {{ .Tag }} release {{ .Version }} of [OpenIM](https://github.com/{{ .Env.USERNAME }}/{{ .ProjectName }})!🎉🎉! -We are excited to release {{.Tag}}, Learn more about versions of OpenIM: +We are excited to release {{.Tag}}, Branch: {{ .Branch }}, Git hash[{{ .ShortCommit }}, Install Address: {{ .ReleaseURL }}, Learn more about versions of OpenIM: + We release logs are recorded on [✨CHANGELOG](https://github.com/{{ .Env.USERNAME }}/{{ .ProjectName }}/blob/main/CHANGELOG/CHANGELOG.md)