|
|
|
@ -114,15 +114,12 @@ jobs:
|
|
|
|
|
uses: docker/setup-qemu-action@v3
|
|
|
|
|
- name: Set up Docker Buildx
|
|
|
|
|
uses: docker/setup-buildx-action@v3
|
|
|
|
|
# ghcr.io/openimsdk/openim-web:latest
|
|
|
|
|
- name: Extract metadata (tags, labels) for Docker
|
|
|
|
|
id: meta2
|
|
|
|
|
uses: docker/metadata-action@v5.0.0
|
|
|
|
|
with:
|
|
|
|
|
install: true
|
|
|
|
|
- name: Cache Docker layers
|
|
|
|
|
uses: actions/cache@v3
|
|
|
|
|
with:
|
|
|
|
|
path: /tmp/.buildx-cache
|
|
|
|
|
key: ${{ runner.os }}-buildx-${{ github.sha }}
|
|
|
|
|
restore-keys: |
|
|
|
|
|
${{ runner.os }}-buildx-
|
|
|
|
|
images: ghcr.io/openimsdk/openim-web
|
|
|
|
|
|
|
|
|
|
- name: Log in to GitHub Container Registry
|
|
|
|
|
uses: docker/login-action@v3
|
|
|
|
@ -131,38 +128,12 @@ jobs:
|
|
|
|
|
username: ${{ github.repository_owner }}
|
|
|
|
|
password: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
|
|
|
|
|
|
- name: Extract metadata (tags, labels) for Docker openim-web
|
|
|
|
|
id: meta1
|
|
|
|
|
uses: docker/metadata-action@v5.0.0
|
|
|
|
|
with:
|
|
|
|
|
images: ghcr.io/openimsdk/openim-web
|
|
|
|
|
|
|
|
|
|
- name: Build and push Docker image for openim-web
|
|
|
|
|
- name: Build and push Docker image
|
|
|
|
|
uses: docker/build-push-action@v5
|
|
|
|
|
with:
|
|
|
|
|
context: .
|
|
|
|
|
file: ./build/images/openim-tools/openim-web/Dockerfile
|
|
|
|
|
platforms: linux/amd64,linux/arm64
|
|
|
|
|
push: ${{ github.event_name != 'pull_request' }}
|
|
|
|
|
tags: ${{ steps.meta1.outputs.tags }}
|
|
|
|
|
labels: ${{ steps.meta1.outputs.labels }}
|
|
|
|
|
cache-from: type=local,src=/tmp/.buildx-cache
|
|
|
|
|
cache-to: type=local,dest=/tmp/.buildx-cache
|
|
|
|
|
|
|
|
|
|
- name: Extract metadata (tags, labels) for Docker openim-web
|
|
|
|
|
id: meta2
|
|
|
|
|
uses: docker/metadata-action@v5.0.0
|
|
|
|
|
with:
|
|
|
|
|
images: ghcr.io/openimsdk/component
|
|
|
|
|
|
|
|
|
|
- name: Build and push Docker image for component
|
|
|
|
|
uses: docker/build-push-action@v5
|
|
|
|
|
with:
|
|
|
|
|
context: .
|
|
|
|
|
file: ./build/images/openim-tools/component/Dockerfile
|
|
|
|
|
platforms: linux/amd64,linux/arm64
|
|
|
|
|
push: ${{ github.event_name != 'pull_request' }}
|
|
|
|
|
tags: ${{ steps.meta2.outputs.tags }}
|
|
|
|
|
labels: ${{ steps.meta2.outputs.labels }}
|
|
|
|
|
cache-from: type=local,src=/tmp/.buildx-cache
|
|
|
|
|
cache-to: type=local,dest=/tmp/.buildx-cache
|
|
|
|
|
labels: ${{ steps.meta2.outputs.labels }}
|