Skip to content

Commit

Permalink
Only run docker build on GIT_DIFF
Browse files Browse the repository at this point in the history
  • Loading branch information
fastfadingviolets committed Jul 10, 2024
1 parent 903df4c commit bdafda0
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/docker-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -44,3 +57,4 @@ jobs:
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
if: env.GIT_DIFF

0 comments on commit bdafda0

Please sign in to comment.