From 3c5b977fc691fbd53222f8afd29308e24ae280de Mon Sep 17 00:00:00 2001 From: Mmx233 Date: Sun, 14 Aug 2022 20:56:10 +0800 Subject: [PATCH] =?UTF-8?q?ci:=20=E8=87=AA=E5=8A=A8=E6=9E=84=E5=BB=BA=20do?= =?UTF-8?q?cker=20=E9=95=9C=E5=83=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/deploy.yml | 40 ++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 .github/workflows/deploy.yml diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..3eba22c --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,40 @@ +name: Deploy + +on: + push: + branches: + - main + tags: + - v** + +jobs: + Deploy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - name: Setup QEMU Emulator + uses: docker/setup-qemu-action@master + with: + platforms: all + + - name: Setup Docker Buildx Command + id: buildx + uses: docker/setup-buildx-action@master + + - name: Login to docker registry + uses: docker/login-action@v2 + with: + username: ${{ secrets.rgs_u }} + password: ${{ secrets.rgs_p }} + + - name: Build Docker Image and Push + id: docker_build + uses: docker/build-push-action@v2 + with: + push: true + builder: ${{ steps.buildx.outputs.name }} + context: . + file: ./Dockerfile + platforms: linux/amd64,linux/386,linux/arm64,linux/arm/v7 + tags: mmx233/bitsrunlogin-go:latest \ No newline at end of file