|
|
@ -29,30 +29,31 @@ jobs:
|
|
|
|
- name: Check out the repo
|
|
|
|
- name: Check out the repo
|
|
|
|
uses: actions/checkout@v3
|
|
|
|
uses: actions/checkout@v3
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# docker.io/openim/openim-server:latest
|
|
|
|
- name: Log in to Docker Hub
|
|
|
|
- name: Log in to Docker Hub
|
|
|
|
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
|
|
|
|
uses: docker/login-action@v2
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
username: ${{ secrets.DOCKER_USERNAME }}
|
|
|
|
username: ${{ secrets.DOCKER_USERNAME }}
|
|
|
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
|
|
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
|
|
|
|
|
|
|
|
|
|
|
- name: Extract metadata (tags, labels) for Docker
|
|
|
|
- name: Extract metadata (tags, labels) for Docker
|
|
|
|
id: meta
|
|
|
|
id: meta
|
|
|
|
uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
|
|
|
|
uses: docker/metadata-action@v4.6.0
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
images: openim/openim-server
|
|
|
|
images: openim/openim-server
|
|
|
|
tags: latest
|
|
|
|
tags: latest
|
|
|
|
|
|
|
|
|
|
|
|
- name: Build and push Docker image
|
|
|
|
- name: Build and push Docker image
|
|
|
|
uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
|
|
|
|
uses: docker/build-push-action@v4
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
context: .
|
|
|
|
context: .
|
|
|
|
push: true
|
|
|
|
push: true
|
|
|
|
tags: ${{ steps.meta.outputs.tags }}
|
|
|
|
tags: ${{ steps.meta.outputs.tags }}
|
|
|
|
labels: ${{ steps.meta.outputs.labels }}
|
|
|
|
labels: ${{ steps.meta.outputs.labels }}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# registry.cn-hangzhou.aliyuncs.com/openimsdk/openim-server:latest
|
|
|
|
- name: Log in to AliYun Docker Hub
|
|
|
|
- name: Log in to AliYun Docker Hub
|
|
|
|
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
|
|
|
|
uses: docker/login-action@v2
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
registry: registry.cn-hangzhou.aliyuncs.com
|
|
|
|
registry: registry.cn-hangzhou.aliyuncs.com
|
|
|
|
username: ${{ secrets.ALIREGISTRY_USERNAME }}
|
|
|
|
username: ${{ secrets.ALIREGISTRY_USERNAME }}
|
|
|
@ -60,19 +61,42 @@ jobs:
|
|
|
|
|
|
|
|
|
|
|
|
- name: Extract metadata (tags, labels) for Docker
|
|
|
|
- name: Extract metadata (tags, labels) for Docker
|
|
|
|
id: meta2
|
|
|
|
id: meta2
|
|
|
|
uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
|
|
|
|
uses: docker/metadata-action@v4.6.0
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
images: registry.cn-hangzhou.aliyuncs.com/openimsdk/openim-server
|
|
|
|
images: registry.cn-hangzhou.aliyuncs.com/openimsdk/openim-server
|
|
|
|
tags: latest
|
|
|
|
tags: latest
|
|
|
|
|
|
|
|
|
|
|
|
- name: Build and push Docker image
|
|
|
|
- name: Build and push Docker image
|
|
|
|
uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
|
|
|
|
uses: docker/build-push-action@v4
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
context: .
|
|
|
|
context: .
|
|
|
|
push: true
|
|
|
|
push: true
|
|
|
|
tags: ${{ steps.meta2.outputs.tags }}
|
|
|
|
tags: ${{ steps.meta2.outputs.tags }}
|
|
|
|
labels: ${{ steps.meta2.outputs.labels }}
|
|
|
|
labels: ${{ steps.meta2.outputs.labels }}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# ghcr.io/openim/openim-server: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/metadata-action@v4.6.0
|
|
|
|
|
|
|
|
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 }}
|
|
|
|
|
|
|
|
|
|
|
|
# name: OpenIM Build Docker Images
|
|
|
|
# name: OpenIM Build Docker Images
|
|
|
|
# on:
|
|
|
|
# on:
|
|
|
|
# push:
|
|
|
|
# push:
|
|
|
|