From 815f9c0d4372d056604ec8e6633846242a75b688 Mon Sep 17 00:00:00 2001 From: peterxcli <54034701+peterxcli@users.noreply.github.com> Date: Mon, 21 Aug 2023 02:00:30 +0800 Subject: [PATCH] Update ci.yml --- .github/workflows/ci.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d577512..d7dd5df 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -79,6 +79,7 @@ jobs: path: docker.tar swagger-ui: + if: github.ref == 'refs/heads/main' && github.event_name == 'push' needs: [test] runs-on: ubuntu-latest steps: @@ -137,4 +138,4 @@ jobs: # docker load --input docker.tar # docker image ls -a # - name: Docker Push - # run: docker push peter0814/basic-auth-gin:$IMAGE_TAG \ No newline at end of file + # run: docker push peter0814/basic-auth-gin:$IMAGE_TAG