Skip to content

Commit

Permalink
ci: Remove push path filters for dockerfile build action
Browse files Browse the repository at this point in the history
  • Loading branch information
ptrus committed Jun 10, 2020
1 parent deef73c commit 45d4fdd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
1 change: 1 addition & 0 deletions .changelog/2997.internal.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ci: Remove push path filters for dockerfile build action
10 changes: 7 additions & 3 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,17 @@ name: docker

# Trigger the workflow when:
on:
# A push occurs to one of the matched branches and at least one modified file matches the configured paths.
# A push occurs to one of the matched branches.
push:
# XXX: ideally on master branches we would build the image only if there are changes in the
# 'docker/' directory (as we do in pull_requests). However, this doesn't work when pushing a new
# 'stable/*' branch - the build on a new branch does not trigger unless there are changes
# compared to master on the filtered path.
# If this is ever fixed, or per branch filters are possible, bring back the path filter to only
# build the image when there are changes within 'docker/' directory.
branches:
- master
- stable/*
paths:
- docker/**
# Or when a pull request event occurs for a pull request against one of the matched branches and at least
# one modified file matches the configured paths.
#
Expand Down

0 comments on commit 45d4fdd

Please sign in to comment.