ci: 支持部署测试环境
This commit is contained in:
parent
757b0af2be
commit
6f4cd11075
@ -1,4 +1,4 @@
|
||||
name: Egg Server MIflow
|
||||
name: Egg Server CI/CD
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
@ -10,19 +10,26 @@ jobs:
|
||||
container: catthehacker/ubuntu:act-latest
|
||||
steps:
|
||||
- name: Check out repository code
|
||||
uses: actions/checkout@v3
|
||||
uses: actions/checkout@v4
|
||||
- name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v2
|
||||
uses: docker/setup-qemu-action@v3
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v2
|
||||
uses: docker/setup-buildx-action@v3
|
||||
- name: Login to Docker Hub
|
||||
uses: docker/login-action@v2
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: micr.cloud.mioffice.cn
|
||||
username: ${{ secrets.MI_DOCKER_USERNAME }}
|
||||
password: ${{ secrets.MI_DOCKER_PASSWORD }}
|
||||
- name: Build and push
|
||||
uses: docker/build-push-action@v4
|
||||
uses: docker/build-push-action@v6
|
||||
with:
|
||||
push: true
|
||||
tags: micr.cloud.mioffice.cn/egg/egg_server:${{ github.sha }}
|
||||
|
||||
fast-deploy:
|
||||
runs-on: ubuntu-latest
|
||||
container: cr.d.xiaomi.net/bigdata-fe/matrix-cli
|
||||
steps:
|
||||
- name: Use matrix-cli to deploy
|
||||
run: matrix-cli --project 462609 deploy --deploy-space 62288 --reason "${{ github.event.head_commit.message }}" --deploy-percentage 1 --tag ${{ github.sha }}
|
||||
|
Loading…
x
Reference in New Issue
Block a user