Skip to content

Commit

Permalink
common: force Docker rebuild on docker_rebuild.yml modifications
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 18, 2023
1 parent eeb4b41 commit 45c331a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/docker_rebuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,14 @@ on:
- master
paths:
- 'utils/docker/images/**'
- '.github/workflows/docker_rebuild.yml'

push:
branches:
- master
paths:
- 'utils/docker/images/**'
- '.github/workflows/docker_rebuild.yml'
schedule:
# run this job at 22:00 UTC every other day (hopefully just before the nightly)
- cron: '0 22 */2 * *'
Expand Down
5 changes: 5 additions & 0 deletions utils/docker/pull-or-rebuild-image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,11 @@ function push_image {
popd
else
echo "Skip pushing the image to the ${DOCKER_REPO}."
echo "CI_REPO_SLUG: ${CI_REPO_SLUG}"
echo "GITHUB_REPO: ${GITHUB_REPO}"
echo "CI_BRANCH: ${CI_BRANCH}"
echo "CI_EVENT_TYPE: ${CI_EVENT_TYPE}"
echo "PUSH_IMAGE: ${PUSH_IMAGE}"
fi
}

Expand Down

0 comments on commit 45c331a

Please sign in to comment.