From 12f181741ac4e348310dd95b574374e623a71dfd Mon Sep 17 00:00:00 2001 From: "Xinwei Xiong(cubxxw-openim)" <3293172751nss@gmail.com> Date: Mon, 31 Jul 2023 21:30:09 +0800 Subject: [PATCH] fix: delete config secret Signed-off-by: Xinwei Xiong(cubxxw-openim) <3293172751nss@gmail.com> --- .github/workflows/release.yml | 9 +- .goreleaser.yaml | 164 +++++++++++++++++----------------- 2 files changed, 87 insertions(+), 86 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 46c196980..21219e380 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -65,6 +65,9 @@ jobs: - uses: cachix/install-nix-action@v22 with: github_access_token: ${{ secrets.GITHUB_TOKEN }} + - name: snapcraft-login + if: startsWith(github.ref, 'refs/tags/v') + run: snapcraft login --with <(echo "${{ secrets.SNAPCRAFT_TOKEN }}") # More assembly might be required: Docker logins, GPG, etc. It all depends # on your needs. - name: Set up QEMU @@ -96,10 +99,6 @@ jobs: username: ${{ secrets.ALIREGISTRY_USERNAME }} password: ${{ secrets.ALIREGISTRY_TOKEN }} - # - name: snapcraft-login - # if: startsWith(github.ref, 'refs/tags/v') - # run: snapcraft login --with <(echo "${{ secrets.SNAPCRAFT_TOKEN }}") - - uses: goreleaser/goreleaser-action@v4 with: # either 'goreleaser' (default) or 'goreleaser-pro': @@ -112,3 +111,5 @@ jobs: # Your GoReleaser Pro key, if you are using the 'goreleaser-pro' # distribution: # GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }} + FURY_TOKEN: ${{ secrets.FURY_TOKEN }} + diff --git a/.goreleaser.yaml b/.goreleaser.yaml index efe5baa08..20d2864fb 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -212,80 +212,80 @@ changelog: - title: Other work order: 9999 -# dockers: -# - image_templates: -# - "openim/openim-chat:{{ .Tag }}-amd64" -# - "ghcr.io/{{ .Env.USERNAME }}/openim-chat:{{ .Tag }}-amd64" -# - "registry.cn-hangzhou.aliyuncs.com/openimsdk/openim-chat:{{ .Tag }}-amd64" -# build_flag_templates: -# - "--pull" -# - "--label=io.artifacthub.package.readme-url=https://raw.githubusercontent.com/OpenIMSDK/chat/main/README.md" -# - "--label=io.artifacthub.package.logo-url=hhttps://github.com/OpenIMSDK/chat/blob/main/assets/logo/openim-logo-green.png" -# - '--label=io.artifacthub.package.maintainers=[{"name":"Xinwei Xiong","email":"3293172751nss@gmail.com"}]' -# - "--label=io.artifacthub.package.license=Apace-2.0" -# - "--label=org.opencontainers.image.description=OpenIM Open source top instant messaging system" -# - "--label=org.opencontainers.image.created={{.Date}}" -# - "--label=org.opencontainers.image.name={{.ProjectName}}" -# - "--label=org.opencontainers.image.revision={{.FullCommit}}" -# - "--label=org.opencontainers.image.version={{.Version}}" -# - "--label=org.opencontainers.image.source={{.GitURL}}" -# - "--platform=linux/amd64" -# ids: | -# - chat -# goos: linux -# goarch: amd64 -# dockerfile: Dockerfile -# use: buildx - -# - image_templates: -# - "openim/openim-chat:{{ .Tag }}-arm64" -# - "ghcr.io/openimsdk/openim-chat:{{ .Tag }}-arm64" -# - "registry.cn-hangzhou.aliyuncs.com/openimsdk/openim-chat:{{ .Tag }}-arm64" -# build_flag_templates: -# - "--pull" -# - "--label=io.artifacthub.package.readme-url=https://raw.githubusercontent.com/OpenIMSDK/chat/main/README.md" -# - "--label=io.artifacthub.package.logo-url=hhttps://github.com/OpenIMSDK/chat/blob/main/assets/logo/openim-logo-green.png" -# - '--label=io.artifacthub.package.maintainers=[{"name":"Xinwei Xiong","email":"3293172751nss@gmail.com"}]' -# - "--label=io.artifacthub.package.license=Apace-2.0" -# - "--label=org.opencontainers.image.description=OpenIM Open source top instant messaging system" -# - "--label=org.opencontainers.image.created={{.Date}}" -# - "--label=org.opencontainers.image.name={{.ProjectName}}" -# - "--label=org.opencontainers.image.revision={{.FullCommit}}" -# - "--label=org.opencontainers.image.version={{.Version}}" -# - "--label=org.opencontainers.image.source={{.GitURL}}" -# - "--platform=linux/arm64" -# ids: | -# - chat -# goos: linux -# goarch: arm64 -# dockerfile: Dockerfile -# use: buildx - -# docker_manifests: -# - name_template: "openim/openim-chat:{{ .Tag }}" -# image_templates: -# - "openim/openim-chat:{{ .Tag }}-amd64" -# - "openim/openim-chat:{{ .Tag }}-arm64" -# - name_template: "ghcr.io/openimsdk/openim-chat:{{ .Tag }}" -# image_templates: -# - "ghcr.io/openimsdk/openim-chat:{{ .Tag }}-amd64" -# - "ghcr.io/openimsdk/openim-chat:{{ .Tag }}-arm64" -# - name_template: "registry.cn-hangzhou.aliyuncs.com/openimsdk/openim-chat:{{ .Tag }}" -# image_templates: -# - "registry.cn-hangzhou.aliyuncs.com/openimsdk/openim-chat:{{ .Tag }}-amd64" -# - "registry.cn-hangzhou.aliyuncs.com/openimsdk/openim-chat:{{ .Tag }}-arm64" -# - name_template: "openim/openim-chat:latest" -# image_templates: -# - "openim/openim-chat:{{ .Tag }}-amd64" -# - "openim/openim-chat:{{ .Tag }}-arm64" -# - name_template: "ghcr.io/openimsdk/openim-chat:latest" -# image_templates: -# - "ghcr.io/openimsdk/openim-chat:{{ .Tag }}-amd64" -# - "ghcr.io/openimsdk/openim-chat:{{ .Tag }}-arm64" -# - name_template: "registry.cn-hangzhou.aliyuncs.com/openimsdk/openim-chat:latest" -# image_templates: -# - "registry.cn-hangzhou.aliyuncs.com/openimsdk/openim-chat:{{ .Tag }}-amd64" -# - "registry.cn-hangzhou.aliyuncs.com/openimsdk/openim-chat:{{ .Tag }}-arm64" +dockers: + - image_templates: + - "openim/openim-chat:{{ .Tag }}-amd64" + - "ghcr.io/{{ .Env.USERNAME }}/openim-chat:{{ .Tag }}-amd64" + - "registry.cn-hangzhou.aliyuncs.com/openimsdk/openim-chat:{{ .Tag }}-amd64" + build_flag_templates: + - "--pull" + - "--label=io.artifacthub.package.readme-url=https://raw.githubusercontent.com/OpenIMSDK/chat/main/README.md" + - "--label=io.artifacthub.package.logo-url=hhttps://github.com/OpenIMSDK/chat/blob/main/assets/logo/openim-logo-green.png" + - '--label=io.artifacthub.package.maintainers=[{"name":"Xinwei Xiong","email":"3293172751nss@gmail.com"}]' + - "--label=io.artifacthub.package.license=Apace-2.0" + - "--label=org.opencontainers.image.description=OpenIM Open source top instant messaging system" + - "--label=org.opencontainers.image.created={{.Date}}" + - "--label=org.opencontainers.image.name={{.ProjectName}}" + - "--label=org.opencontainers.image.revision={{.FullCommit}}" + - "--label=org.opencontainers.image.version={{.Version}}" + - "--label=org.opencontainers.image.source={{.GitURL}}" + - "--platform=linux/amd64" + ids: | + - chat + goos: linux + goarch: amd64 + dockerfile: Dockerfile + use: buildx + + - image_templates: + - "openim/openim-chat:{{ .Tag }}-arm64" + - "ghcr.io/openimsdk/openim-chat:{{ .Tag }}-arm64" + - "registry.cn-hangzhou.aliyuncs.com/openimsdk/openim-chat:{{ .Tag }}-arm64" + build_flag_templates: + - "--pull" + - "--label=io.artifacthub.package.readme-url=https://raw.githubusercontent.com/OpenIMSDK/chat/main/README.md" + - "--label=io.artifacthub.package.logo-url=hhttps://github.com/OpenIMSDK/chat/blob/main/assets/logo/openim-logo-green.png" + - '--label=io.artifacthub.package.maintainers=[{"name":"Xinwei Xiong","email":"3293172751nss@gmail.com"}]' + - "--label=io.artifacthub.package.license=Apace-2.0" + - "--label=org.opencontainers.image.description=OpenIM Open source top instant messaging system" + - "--label=org.opencontainers.image.created={{.Date}}" + - "--label=org.opencontainers.image.name={{.ProjectName}}" + - "--label=org.opencontainers.image.revision={{.FullCommit}}" + - "--label=org.opencontainers.image.version={{.Version}}" + - "--label=org.opencontainers.image.source={{.GitURL}}" + - "--platform=linux/arm64" + ids: | + - chat + goos: linux + goarch: arm64 + dockerfile: Dockerfile + use: buildx + +docker_manifests: + - name_template: "openim/openim-chat:{{ .Tag }}" + image_templates: + - "openim/openim-chat:{{ .Tag }}-amd64" + - "openim/openim-chat:{{ .Tag }}-arm64" + - name_template: "ghcr.io/openimsdk/openim-chat:{{ .Tag }}" + image_templates: + - "ghcr.io/openimsdk/openim-chat:{{ .Tag }}-amd64" + - "ghcr.io/openimsdk/openim-chat:{{ .Tag }}-arm64" + - name_template: "registry.cn-hangzhou.aliyuncs.com/openimsdk/openim-chat:{{ .Tag }}" + image_templates: + - "registry.cn-hangzhou.aliyuncs.com/openimsdk/openim-chat:{{ .Tag }}-amd64" + - "registry.cn-hangzhou.aliyuncs.com/openimsdk/openim-chat:{{ .Tag }}-arm64" + - name_template: "openim/openim-chat:latest" + image_templates: + - "openim/openim-chat:{{ .Tag }}-amd64" + - "openim/openim-chat:{{ .Tag }}-arm64" + - name_template: "ghcr.io/openimsdk/openim-chat:latest" + image_templates: + - "ghcr.io/openimsdk/openim-chat:{{ .Tag }}-amd64" + - "ghcr.io/openimsdk/openim-chat:{{ .Tag }}-arm64" + - name_template: "registry.cn-hangzhou.aliyuncs.com/openimsdk/openim-chat:latest" + image_templates: + - "registry.cn-hangzhou.aliyuncs.com/openimsdk/openim-chat:{{ .Tag }}-amd64" + - "registry.cn-hangzhou.aliyuncs.com/openimsdk/openim-chat:{{ .Tag }}-arm64" nfpms: - id: packages @@ -356,14 +356,14 @@ publishers: echo "Skipping deployment: Non-production release detected" fi' -# snapcrafts: -# - name_template: "{{ .ProjectName }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}" -# summary: openim is open source instant messaging -# description: | -# OpenIM yyds -# grade: stable -# confinement: classic -# publish: true +snapcrafts: + - name_template: "{{ .ProjectName }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}" + summary: openim is open source instant messaging + description: | + OpenIM yyds + grade: stable + confinement: classic + publish: true checksum: name_template: "{{ .ProjectName }}_checksums.txt"