From 9e6b4f4f5d45708a64675e67b9e53e43f9b0154a Mon Sep 17 00:00:00 2001 From: zhaoyingbo Date: Mon, 29 Jul 2024 08:19:23 +0000 Subject: [PATCH] =?UTF-8?q?ci:=20=E4=BF=AE=E6=94=B9=E9=95=9C=E5=83=8F?= =?UTF-8?q?=E6=89=93=E5=8C=85=E5=9C=B0=E5=9D=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/{cicd.yaml => cicd.yaml.bak} | 0 .gitea/workflows/miflow.yml | 28 +++++++++++++++++++ 2 files changed, 28 insertions(+) rename .gitea/workflows/{cicd.yaml => cicd.yaml.bak} (100%) create mode 100644 .gitea/workflows/miflow.yml diff --git a/.gitea/workflows/cicd.yaml b/.gitea/workflows/cicd.yaml.bak similarity index 100% rename from .gitea/workflows/cicd.yaml rename to .gitea/workflows/cicd.yaml.bak diff --git a/.gitea/workflows/miflow.yml b/.gitea/workflows/miflow.yml new file mode 100644 index 0000000..7e2c9a9 --- /dev/null +++ b/.gitea/workflows/miflow.yml @@ -0,0 +1,28 @@ +name: Egg Server 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/egg_server:${{ github.sha }}