diff --git a/.gitea/workflows/miflow.yml b/.gitea/workflows/miflow.yml new file mode 100644 index 0000000..e25b27c --- /dev/null +++ b/.gitea/workflows/miflow.yml @@ -0,0 +1,28 @@ +name: CI Monitor MIflow +on: + push: + branches: + - master + +jobs: + build-image: + runs-on: ubuntu-latest + container: catthehacker/ubuntu:act-latest + steps: + - name: Check out repository code + uses: actions/checkout@v3 + - name: Set up QEMU + uses: docker/setup-qemu-action@v2 + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v2 + - name: Login to Docker Hub + uses: docker/login-action@v2 + 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 + with: + push: true + tags: micr.cloud.mioffice.cn/egg/ci_monitor:${{ github.sha }}