diff --git a/.github/workflows/build-docker-image.yml b/.github/workflows/build-docker-image.yml index df636bb95..c5ef8fec0 100644 --- a/.github/workflows/build-docker-image.yml +++ b/.github/workflows/build-docker-image.yml @@ -22,6 +22,11 @@ on: - v* workflow_dispatch: +env: + # Common versions + GO_VERSION: "1.20" + DEFAULT_OWNER: "OpenIMSDK" + jobs: build: runs-on: ubuntu-latest @@ -29,13 +34,24 @@ jobs: - name: Check out the repo uses: actions/checkout@v3 -# build chat + # build chat - name: Build chat run: | sudo make build cd scripts sudo ./build_all_service.sh + - name: Setup Golang with cache + uses: magnetikonline/action-golang-cache@v3 + with: + go-version: ${{ env.GO_VERSION }} + + - name: Install Dependencies + run: | + sudo apt update && sudo apt install -y gcc-aarch64-linux-gnu \ + libbtrfs-dev libgpgme-dev libdevmapper-dev \ + qemu-user-static binfmt-support + # docker.io/openim/openim-chat:latest - name: Extract metadata (tags, labels) for Docker id: meta @@ -100,4 +116,3 @@ jobs: push: ${{ github.event_name != 'pull_request' }} tags: ${{ steps.meta3.outputs.tags }} labels: ${{ steps.meta3.outputs.labels }} - diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 952ef67fc..4bedcd82b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -53,6 +53,7 @@ jobs: args: release --clean env: GITHUB_TOKEN: ${{ secrets.BOT_GITHUB_TOKEN }} + USERNAME: ${{ github.repository_owner }} # Your GoReleaser Pro key, if you are using the 'goreleaser-pro' # distribution: # GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }} diff --git a/.goreleaser.yaml b/.goreleaser.yaml index bfae363ea..a8ed8cb20 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -341,6 +341,9 @@ checksum: release: footer: | + + ## Welcome to the {{ .Tag }} release of [chat](https://github.com/OpenIMSDK/chat)!🎉🎉! + **Full Changelog**: https://github.com/OpenIMSDK/chat/compare/{{ .PreviousTag }}...{{ .Tag }} ## Helping out