From 2a5d6947086b60bc947a0c95f5d812ff424e38c2 Mon Sep 17 00:00:00 2001 From: aipc Date: Tue, 1 Apr 2025 19:29:29 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=B7=A5=E4=BD=9C=E6=B5=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/build-docker-images.yml | 37 ++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .gitea/workflows/build-docker-images.yml diff --git a/.gitea/workflows/build-docker-images.yml b/.gitea/workflows/build-docker-images.yml new file mode 100644 index 0000000..ca374dd --- /dev/null +++ b/.gitea/workflows/build-docker-images.yml @@ -0,0 +1,37 @@ +name: Docker Image Build and Push + +on: + workflow_dispatch: + inputs: + version: + description: '宝塔版本' + required: true + default: '9.5.0' + +jobs: + build-and-push-multiarch: + name: Build and Push Multi-Arch Docker Image + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v3 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v2 + + - name: Login to Docker Hub + uses: docker/login-action@v2 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_PASSWORD }} + + - name: Build and push multi-arch Docker images + uses: docker/build-push-action@v4 + with: + context: . + file: ./Dockerfile + platforms: linux/amd64,linux/arm64 + push: true + tags: + - ldxw/btpanel:latest + - ldxw/btpanel:${{ github.event.inputs.version }} \ No newline at end of file