Skip to content

Commit c509f7d

Browse files
committed
feat: add test
Signed-off-by: Xinwei Xiong(cubxxw-openim) <[email protected]>
1 parent 692ff29 commit c509f7d

File tree

2 files changed

+66
-60
lines changed

2 files changed

+66
-60
lines changed

.github/workflows/deploy.yml

+6
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,12 @@ on:
2626
- 'docker-compose.yml'
2727
- 'bin/*'
2828

29+
env:
30+
SERVER_PRIVATE_KEY: ${{ secrets.SERVER_PRIVATE_KEY }} # server private key
31+
SERVER_HOST: ${{ secrets.SERVER_HOST }} # server ip address
32+
USER_NAME: ${{ secrets.USER_NAME }} # server username
33+
cache-name: note
34+
2935
jobs:
3036
deploy-dev:
3137
runs-on: ubuntu-latest

.goreleaser.yaml

+60-60
Original file line numberDiff line numberDiff line change
@@ -335,66 +335,66 @@ changelog:
335335
- title: Other work
336336
order: 9999
337337

338-
dockers:
339-
- image_templates:
340-
- "openimsdk/open-im-server:{{ .Tag }}-amd64"
341-
- "ghcr.io/goreleaser/goreleaser:{{ .Tag }}-amd64"
342-
dockerfile: Dockerfile
343-
use: buildx
344-
build_flag_templates:
345-
- "--pull"
346-
- "--label=io.artifacthub.package.readme-url=https://raw.githubusercontent.com/OpenIMSDK/Open-IM-Server/main/README.md"
347-
- "--label=io.artifacthub.package.logo-url=hhttps://github.com/OpenIMSDK/Open-IM-Server/blob/main/assets/logo/openim-logo-green.png"
348-
- '--label=io.artifacthub.package.maintainers=[{"name":"Xinwei Xiong","email":"[email protected]"}]'
349-
- "--label=io.artifacthub.package.license=Apace-2.0"
350-
- "--label=org.opencontainers.image.description=OpenIM Open source top instant messaging system"
351-
- "--label=org.opencontainers.image.created={{.Date}}"
352-
- "--label=org.opencontainers.image.name={{.ProjectName}}"
353-
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
354-
- "--label=org.opencontainers.image.version={{.Version}}"
355-
- "--label=org.opencontainers.image.source={{.GitURL}}"
356-
- "--platform=linux/amd64"
357-
extra_files:
358-
- scripts/entrypoint.sh
359-
- image_templates:
360-
- "goreleaser/goreleaser:{{ .Tag }}-arm64"
361-
- "ghcr.io/goreleaser/goreleaser:{{ .Tag }}-arm64"
362-
dockerfile: Dockerfile
363-
use: buildx
364-
build_flag_templates:
365-
- "--pull"
366-
- "--label=io.artifacthub.package.readme-url=https://raw.githubusercontent.com/OpenIMSDK/Open-IM-Server/main/README.md"
367-
- "--label=io.artifacthub.package.logo-url=hhttps://github.com/OpenIMSDK/Open-IM-Server/blob/main/assets/logo/openim-logo-green.png"
368-
- '--label=io.artifacthub.package.maintainers=[{"name":"Xinwei Xiong","email":"[email protected]"}]'
369-
- "--label=io.artifacthub.package.license=Apace-2.0"
370-
- "--label=org.opencontainers.image.description=OpenIM Open source top instant messaging system"
371-
- "--label=org.opencontainers.image.created={{.Date}}"
372-
- "--label=org.opencontainers.image.name={{.ProjectName}}"
373-
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
374-
- "--label=org.opencontainers.image.version={{.Version}}"
375-
- "--label=org.opencontainers.image.source={{.GitURL}}"
376-
- "--platform=linux/arm64"
377-
goarch: arm64
378-
extra_files:
379-
- scripts/entrypoint.sh
380-
381-
docker_manifests:
382-
- name_template: "goreleaser/goreleaser:{{ .Tag }}"
383-
image_templates:
384-
- "goreleaser/goreleaser:{{ .Tag }}-amd64"
385-
- "goreleaser/goreleaser:{{ .Tag }}-arm64"
386-
- name_template: "ghcr.io/goreleaser/goreleaser:{{ .Tag }}"
387-
image_templates:
388-
- "ghcr.io/goreleaser/goreleaser:{{ .Tag }}-amd64"
389-
- "ghcr.io/goreleaser/goreleaser:{{ .Tag }}-arm64"
390-
- name_template: "goreleaser/goreleaser:latest"
391-
image_templates:
392-
- "goreleaser/goreleaser:{{ .Tag }}-amd64"
393-
- "goreleaser/goreleaser:{{ .Tag }}-arm64"
394-
- name_template: "ghcr.io/goreleaser/goreleaser:latest"
395-
image_templates:
396-
- "ghcr.io/goreleaser/goreleaser:{{ .Tag }}-amd64"
397-
- "ghcr.io/goreleaser/goreleaser:{{ .Tag }}-arm64"
338+
# dockers:
339+
# - image_templates:
340+
# - "openimsdk/open-im-server:{{ .Tag }}-amd64"
341+
# - "ghcr.io/goreleaser/goreleaser:{{ .Tag }}-amd64"
342+
# dockerfile: Dockerfile
343+
# use: buildx
344+
# build_flag_templates:
345+
# - "--pull"
346+
# - "--label=io.artifacthub.package.readme-url=https://raw.githubusercontent.com/OpenIMSDK/Open-IM-Server/main/README.md"
347+
# - "--label=io.artifacthub.package.logo-url=hhttps://github.com/OpenIMSDK/Open-IM-Server/blob/main/assets/logo/openim-logo-green.png"
348+
# - '--label=io.artifacthub.package.maintainers=[{"name":"Xinwei Xiong","email":"[email protected]"}]'
349+
# - "--label=io.artifacthub.package.license=Apace-2.0"
350+
# - "--label=org.opencontainers.image.description=OpenIM Open source top instant messaging system"
351+
# - "--label=org.opencontainers.image.created={{.Date}}"
352+
# - "--label=org.opencontainers.image.name={{.ProjectName}}"
353+
# - "--label=org.opencontainers.image.revision={{.FullCommit}}"
354+
# - "--label=org.opencontainers.image.version={{.Version}}"
355+
# - "--label=org.opencontainers.image.source={{.GitURL}}"
356+
# - "--platform=linux/amd64"
357+
# extra_files:
358+
# - scripts/entrypoint.sh
359+
# - image_templates:
360+
# - "goreleaser/goreleaser:{{ .Tag }}-arm64"
361+
# - "ghcr.io/goreleaser/goreleaser:{{ .Tag }}-arm64"
362+
# dockerfile: Dockerfile
363+
# use: buildx
364+
# build_flag_templates:
365+
# - "--pull"
366+
# - "--label=io.artifacthub.package.readme-url=https://raw.githubusercontent.com/OpenIMSDK/Open-IM-Server/main/README.md"
367+
# - "--label=io.artifacthub.package.logo-url=hhttps://github.com/OpenIMSDK/Open-IM-Server/blob/main/assets/logo/openim-logo-green.png"
368+
# - '--label=io.artifacthub.package.maintainers=[{"name":"Xinwei Xiong","email":"[email protected]"}]'
369+
# - "--label=io.artifacthub.package.license=Apace-2.0"
370+
# - "--label=org.opencontainers.image.description=OpenIM Open source top instant messaging system"
371+
# - "--label=org.opencontainers.image.created={{.Date}}"
372+
# - "--label=org.opencontainers.image.name={{.ProjectName}}"
373+
# - "--label=org.opencontainers.image.revision={{.FullCommit}}"
374+
# - "--label=org.opencontainers.image.version={{.Version}}"
375+
# - "--label=org.opencontainers.image.source={{.GitURL}}"
376+
# - "--platform=linux/arm64"
377+
# goarch: arm64
378+
# extra_files:
379+
# - scripts/entrypoint.sh
380+
381+
# docker_manifests:
382+
# - name_template: "goreleaser/goreleaser:{{ .Tag }}"
383+
# image_templates:
384+
# - "goreleaser/goreleaser:{{ .Tag }}-amd64"
385+
# - "goreleaser/goreleaser:{{ .Tag }}-arm64"
386+
# - name_template: "ghcr.io/goreleaser/goreleaser:{{ .Tag }}"
387+
# image_templates:
388+
# - "ghcr.io/goreleaser/goreleaser:{{ .Tag }}-amd64"
389+
# - "ghcr.io/goreleaser/goreleaser:{{ .Tag }}-arm64"
390+
# - name_template: "goreleaser/goreleaser:latest"
391+
# image_templates:
392+
# - "goreleaser/goreleaser:{{ .Tag }}-amd64"
393+
# - "goreleaser/goreleaser:{{ .Tag }}-arm64"
394+
# - name_template: "ghcr.io/goreleaser/goreleaser:latest"
395+
# image_templates:
396+
# - "ghcr.io/goreleaser/goreleaser:{{ .Tag }}-amd64"
397+
# - "ghcr.io/goreleaser/goreleaser:{{ .Tag }}-arm64"
398398

399399
nfpms:
400400
- id: packages

0 commit comments

Comments
 (0)