Skip to content

Merge branch 'feature/v3.0' into develop #34

Merge branch 'feature/v3.0' into develop

Merge branch 'feature/v3.0' into develop #34

name: Build and Publish Docker Images Demo
on:
push:
branches: [ "develop" ]
pull_request:
branches: [ "develop" ]
permissions:
contents: read
packages: write
jobs:
xpert-api:
runs-on: ubuntu-latest
environment: production
steps:
- uses: actions/checkout@v4
- name: Build
uses: docker/[email protected]
with:
context: .
file: ./.deploy/api/Dockerfile
load: true
platforms: linux/amd64
tags: |
ghcr.io/xpert-ai/xpert-api-demo:latest
metadc/xpert-api-demo:latest
registry.cn-hangzhou.aliyuncs.com/metad/xpert-api-demo:latest
cache-from: type=registry,ref=metadc/xpert-api-demo:latest
cache-to: type=inline
- name: Docker images list
run: |
sudo docker image list
- name: Login to DockerHub
uses: docker/[email protected]
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Push to Docker Hub Registry
run: |
docker push metadc/xpert-api-demo:latest
- name: Login to GitHub Container Registry
uses: docker/[email protected]
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Push to Github Registry
run: |
docker push ghcr.io/xpert-ai/xpert-api-demo:latest
- uses: aliyun/acr-login@v1
with:
login-server: https://registry.cn-hangzhou.aliyuncs.com
username: "${{ secrets.ACR_USERNAME }}"
password: "${{ secrets.ACR_PASSWORD }}"
- name: Push to Aliyun Registry
run: |
docker push registry.cn-hangzhou.aliyuncs.com/metad/xpert-api-demo:latest
xpert-webapp:
runs-on: ubuntu-latest
environment: production
steps:
- uses: actions/checkout@v4
- name: Build
uses: docker/[email protected]
with:
context: .
file: ./.deploy/webapp/Dockerfile
load: true
platforms: linux/amd64
tags: |
ghcr.io/xpert-ai/xpert-webapp-demo:latest
metadc/xpert-webapp-demo:latest
registry.cn-hangzhou.aliyuncs.com/metad/xpert-webapp-demo:latest
cache-from: type=registry,ref=metadc/xpert-webapp-demo:latest
cache-to: type=inline
- name: Docker images list
run: |
sudo docker image list
- name: Login to DockerHub
uses: docker/[email protected]
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Push to Docker Hub Registry
run: |
docker push metadc/xpert-webapp-demo:latest
- name: Login to GitHub Container Registry
uses: docker/[email protected]
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Push to Github Registry
run: |
docker push ghcr.io/xpert-ai/xpert-webapp-demo:latest
- uses: aliyun/acr-login@v1
with:
login-server: https://registry.cn-hangzhou.aliyuncs.com
username: "${{ secrets.ACR_USERNAME }}"
password: "${{ secrets.ACR_PASSWORD }}"
- name: Push to Aliyun Registry
run: |
docker push registry.cn-hangzhou.aliyuncs.com/metad/xpert-webapp-demo:latest