Skip to content

Commit

Permalink
common: force rebuild docker images
Browse files Browse the repository at this point in the history
Signed-off-by: Tomasz Gromadzki <tomasz.gromadzki@intel.com>
  • Loading branch information
grom72 committed Jul 17, 2023
1 parent a21dac3 commit eeb4b41
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/docker_rebuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,6 @@ jobs:
steps:
- name: Clone the git repo
uses: actions/checkout@v3

- name: Get system information
run: ./$WORKDIR/get-system-info.sh

- name: Pull or rebuild the image
run: cd $WORKDIR && ${{ matrix.CONFIG }} ./pull-or-rebuild-image.sh
run: cd $WORKDIR && ${{ matrix.CONFIG }} ./pull-or-rebuild-image.sh rebuild
3 changes: 2 additions & 1 deletion utils/docker/pull-or-rebuild-image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,8 @@ for file in $files; do echo $file; done
for file in $files; do
# Check if modified files are relevant to the current build
if [[ $file =~ ^($base_dir)\/Dockerfile\.($OS)-($OS_VER)$ ]] \
|| [[ $file =~ ^($base_dir)\/.*\.sh$ ]]
|| [[ $file =~ ^($base_dir)\/.*\.sh$ ]] \
|| [[ $file =~ ^($base_dir)\/\.\.\/\.\.\/\.\.\/\.github\/workflows\/docker_rebuild\.yml ]]
then
build_image
push_image
Expand Down

0 comments on commit eeb4b41

Please sign in to comment.