From 58f25c8cd5f48bb37c84b970e5eea05c6ba9b6d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E5=AF=BB=E6=AC=A2?= Date: Mon, 15 Jan 2024 10:02:09 +0800 Subject: [PATCH] =?UTF-8?q?:whale:=20=E6=B7=BB=E5=8A=A0Docker=E9=95=9C?= =?UTF-8?q?=E5=83=8F=E8=87=AA=E5=8A=A8=E6=89=93=E5=8C=85=E6=B5=81=E7=A8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/build-image.yaml | 44 +++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 .gitea/workflows/build-image.yaml diff --git a/.gitea/workflows/build-image.yaml b/.gitea/workflows/build-image.yaml new file mode 100644 index 0000000..36015ee --- /dev/null +++ b/.gitea/workflows/build-image.yaml @@ -0,0 +1,44 @@ +name: BuildImage + +on: + push: + branches: + - main + +jobs: + build-image: + runs-on: ubuntu-latest + container: + # 使用这个镜像,不然Docker无法打包镜像 + image: catthehacker/ubuntu:act-latest + + steps: + - name: Login to Repository + uses: docker/login-action@v2 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + + - name: Build 3.9.8.25 version + uses: docker/build-push-action@v2 + with: + push: true + tags: lxh01/wxhelper-docker:3.9.8.25-v2 + build-args: | + WECHAT_URL=https://github.com/tom-snow/wechat-windows-versions/releases/download/v3.9.8.25/WeChatSetup-3.9.8.25.exe + WXHELPER_URL=https://github.com/ttttupup/wxhelper/releases/download/3.9.8.25-v2/wxhelper.dll + + - name: Build 3.9.5.81 version + uses: docker/build-push-action@v2 + with: + push: true + tags: lxh01/wxhelper-docker:3.9.5.81-v11 + + - name: Build 3.9.8.25 version + uses: docker/build-push-action@v2 + with: + push: true + tags: lxh01/wxhelper-docker:3.9.2.23-v9 + build-args: | + WECHAT_URL=https://github.com/tom-snow/wechat-windows-versions/releases/download/v3.9.2.23/WeChatSetup-3.9.2.23.exe + WXHELPER_URL=https://github.com/ttttupup/wxhelper/releases/download/3.9.2.23-v9/wxhelper.dll