Skip to content

Commit

Permalink
feat: add go relase
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 27, 2023
1 parent 8b2d583 commit 89d5075
Showing 1 changed file with 17 additions and 32 deletions.
49 changes: 17 additions & 32 deletions .github/workflows/build-docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,73 +36,58 @@ jobs:
cd scripts
sudo ./build_all_service.sh
# docker.io/openim/openim-server:latest
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/[email protected]
with:
images: openim/openim-chat

# docker.io/openim/openim-chat:latest
- name: Log in to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/[email protected]
with:
images: openim/openim-server
tags: latest

- name: Build and push Docker image
uses: docker/build-push-action@v4
with:
context: .
push: true
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

# registry.cn-hangzhou.aliyuncs.com/openimsdk/openim-server:latest
# registry.cn-hangzhou.aliyuncs.com/openimsdk/openim-chat:latest
- name: Log in to AliYun Docker Hub
uses: docker/login-action@v2
with:
registry: registry.cn-hangzhou.aliyuncs.com
username: ${{ secrets.ALIREGISTRY_USERNAME }}
password: ${{ secrets.ALIREGISTRY_TOKEN }}

- name: Extract metadata (tags, labels) for Docker
id: meta2
uses: docker/[email protected]
with:
images: registry.cn-hangzhou.aliyuncs.com/openimsdk/openim-server
tags: latest

- name: Build and push Docker image
uses: docker/build-push-action@v4
with:
context: .
push: true
tags: ${{ steps.meta2.outputs.tags }}
labels: ${{ steps.meta2.outputs.labels }}
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

# ghcr.io/openim/openim-server:latest
# ghcr.io/openim/openim-chat:latest
- name: Log in to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Extract metadata (tags, labels) for Docker
id: meta3
uses: docker/[email protected]
with:
images: openim/openim-server
tags: latest

- name: Build and push Docker image
uses: docker/build-push-action@v4
with:
context: .
push: true
tags: ${{ steps.meta3.outputs.tags }}
labels: ${{ steps.meta3.outputs.labels }}
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

# name: OpenIM Build Docker Images
# on:
Expand All @@ -115,7 +100,7 @@ jobs:
# strategy:
# matrix:
# bin:
# - openim-server
# - openim-chat
# steps:
# - name: Checkout
# uses: actions/checkout@v3
Expand Down

0 comments on commit 89d5075

Please sign in to comment.