Skip to content

Commit

Permalink
INVALIDATE_DOCKER_CACHE in Bionic and Focal for the next two months (#…
Browse files Browse the repository at this point in the history
…1067)

* INVALIDATE_DOCKER_CACHE in Bionic for the next two months
* Run INVALIDATION on Focal too
---------

Signed-off-by: Jose Luis Rivero <[email protected]>
  • Loading branch information
j-rivero authored Nov 13, 2023
1 parent f526ba5 commit 6a0cf51
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions jenkins-scripts/docker/lib/docker_generate_dockerfile.bash
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,15 @@ fi

[[ -z ${INSTALL_C17_COMPILER} ]] && INSTALL_C17_COMPILER=false

# Bionic|Focal builds were affected by a "gpg: keyserver receive failed" in apt-key execution
# that poisoned a lot of docker cache in different builds and nodes. Force invalidation
# during a couple of month to rotate images
ref_date='2023-11-13'
if [[ "${DISTRO}" == 'bionic' || "${DISTRO}" == 'focal' ]] && \
[[ "$(date '+%s')" -lt "$(date -d "${ref_date}+60 days" '+%s')" ]]; then
export INVALIDATE_DOCKER_CACHE=true
fi

export APT_PARAMS=

GZDEV_DIR=${WORKSPACE}/gzdev
Expand Down

0 comments on commit 6a0cf51

Please sign in to comment.