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