Skip to content

Commit

Permalink
fix: delete config secret
Browse files Browse the repository at this point in the history
Signed-off-by: Xinwei Xiong(cubxxw-openim) <[email protected]>
  • Loading branch information
cubxxw committed Jul 31, 2023
1 parent 8930e24 commit 12f1817
Show file tree
Hide file tree
Showing 2 changed files with 87 additions and 86 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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':
Expand All @@ -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 }}

164 changes: 82 additions & 82 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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":"[email protected]"}]'
# - "--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":"[email protected]"}]'
# - "--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":"[email protected]"}]'
- "--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":"[email protected]"}]'
- "--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
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit 12f1817

Please sign in to comment.