From d545c94d661348ab57b0fbf3b0ded6e400b16aef Mon Sep 17 00:00:00 2001 From: Cassianvale Date: Fri, 7 Mar 2025 17:48:56 +0800 Subject: [PATCH] =?UTF-8?q?ci:=20=E4=BF=AE=E6=94=B9=E4=B8=BA=E6=89=8B?= =?UTF-8?q?=E5=8A=A8=E8=A7=A6=E5=8F=91Actions=EF=BC=8C=E9=BB=98=E8=AE=A4?= =?UTF-8?q?=E5=85=B3=E9=97=AD=E8=87=AA=E5=8A=A8=E9=83=A8=E7=BD=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/docker-image.yml | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index a2523bb..be82fe6 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -1,17 +1,12 @@ name: Docker Build and Deploy on: - push: - branches: [ main ] - paths-ignore: - - '**.md' - - 'docs/**' workflow_dispatch: inputs: deploy: description: '是否部署' type: boolean - default: true + default: false env: DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }} @@ -83,9 +78,7 @@ jobs: needs: [prepare, build] runs-on: ubuntu-latest if: | - success() && - (github.ref == 'refs/heads/main' && github.event_name == 'push') || - (github.event_name == 'workflow_dispatch' && inputs.deploy) + success() && inputs.deploy steps: - name: Checkout code for prod compose file