diff --git a/.github/workflows/docker-push.yml b/.github/workflows/docker-push.yml index a97dc38e712..5a0f04e299b 100644 --- a/.github/workflows/docker-push.yml +++ b/.github/workflows/docker-push.yml @@ -23,6 +23,19 @@ jobs: - name: Checkout repository uses: actions/checkout@v4 + - uses: technote-space/get-diff-action@v6.1.2 + id: git_diff + with: + PATTERNS: | + **/*.go + go.mod + go.sum + **/go.mod + **/go.sum + **/Makefile + Makefile + e2e.Dockerfile + - name: Log in to the Container registry uses: docker/login-action@v3.2.0 with: @@ -44,3 +57,4 @@ jobs: push: true tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} + if: env.GIT_DIFF