Skip to content

Commit

Permalink
Forcing image pull before building Teku image (#6827)
Browse files Browse the repository at this point in the history
  • Loading branch information
lucassaldanha authored Feb 17, 2023
1 parent 70ac86a commit f777e89
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -514,7 +514,7 @@ task distDocker {
def image = "${dockerImage}:${dockerBuildVersion}-${variant}"
workingDir dockerBuildDir
executable "sh"
args "-c", "docker build --build-arg BUILD_DATE=${buildTime()} --build-arg VERSION=${dockerBuildVersion} --build-arg VCS_REF=${getCheckedOutGitCommitHash()} -t ${image} ."
args "-c", "docker build --pull --build-arg BUILD_DATE=${buildTime()} --build-arg VERSION=${dockerBuildVersion} --build-arg VCS_REF=${getCheckedOutGitCommitHash()} -t ${image} ."
}
}
// tag the "default" (which is the variant in the zero position)
Expand Down Expand Up @@ -558,7 +558,7 @@ task uploadDocker {
exec {
workingDir dockerBuildDir
executable "sh"
args "-c", "docker build --platform ${platform} --build-arg BUILD_DATE=${buildTime()} --build-arg VERSION=${dockerBuildVersion} --build-arg VCS_REF=${getCheckedOutGitCommitHash()} ${tags} ."
args "-c", "docker build --pull --platform ${platform} --build-arg BUILD_DATE=${buildTime()} --build-arg VERSION=${dockerBuildVersion} --build-arg VCS_REF=${getCheckedOutGitCommitHash()} ${tags} ."
}

//docker trust sign runs one image at a time, so we have to remove the '-t' in the string and split into a list we can use
Expand Down

0 comments on commit f777e89

Please sign in to comment.