diff --git a/.ci/packer_cache.sh b/.ci/packer_cache.sh new file mode 100755 index 00000000000..06ece0fde45 --- /dev/null +++ b/.ci/packer_cache.sh @@ -0,0 +1,26 @@ +#!/usr/bin/env bash + +# shellcheck disable=SC1091 +source /usr/local/bin/bash_standard_lib.sh + +# shellcheck disable=SC1091 +source ./script/common.bash + +get_go_version + +DOCKER_IMAGES=" +docker.elastic.co/beats-dev/golang-crossbuild:${GO_VERSION}-arm +docker.elastic.co/beats-dev/golang-crossbuild:${GO_VERSION}-darwin +docker.elastic.co/beats-dev/golang-crossbuild:${GO_VERSION}-main +docker.elastic.co/beats-dev/golang-crossbuild:${GO_VERSION}-main-debian7 +docker.elastic.co/beats-dev/golang-crossbuild:${GO_VERSION}-main-debian8 +docker.elastic.co/beats-dev/golang-crossbuild:${GO_VERSION}-mips +docker.elastic.co/beats-dev/golang-crossbuild:${GO_VERSION}-ppc +docker.elastic.co/beats-dev/golang-crossbuild:${GO_VERSION}-s390x +golang:${GO_VERSION} +" + +for image in ${DOCKER_IMAGES} +do +(retry 2 docker pull ${image}) || echo "Error pulling ${image} Docker image, we continue" +done