This repository was archived by the owner on Aug 5, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +15
-9
lines changed Expand file tree Collapse file tree 2 files changed +15
-9
lines changed Original file line number Diff line number Diff line change @@ -2,9 +2,9 @@ language: bash
22services : docker
33
44env :
5- - VERSION=6 VARIANT=
65 - VERSION=6.4.1 VARIANT=
76 - VERSION=6.4.0 VARIANT=
7+ - VERSION=6 VARIANT=
88 - VERSION=5 VARIANT=
99 - VERSION=5 VARIANT=alpine
1010
@@ -15,12 +15,18 @@ install:
1515
1616before_script :
1717 - env | sort
18- - cd "$VERSION"
18+ - wget -qO- 'https://github.com/tianon/pgp-happy-eyeballs/raw/master/hack-my-builds.sh' | bash
19+ - cd "$VERSION/$VARIANT"
1920 - image="elasticsearch:${VERSION}${VARIANT:+-$VARIANT}"
2021
2122script :
22- - travis_retry docker build -t "$image" "${VARIANT:-.}"
23- - ~/official-images/test/run.sh "$image"
23+ - |
24+ (
25+ set -Eeuo pipefail
26+ set -x
27+ docker build -t "$image" .
28+ ~/official-images/test/run.sh "$image"
29+ )
2430
2531after_script :
2632 - docker images
Original file line number Diff line number Diff line change @@ -41,11 +41,11 @@ for version in "${versions[@]}"; do
4141
4242 # Parse image manifest for sha
4343 authToken=" $( curl -fsSL ' https://docker-auth.elastic.co/auth?service=token-service&scope=repository:elasticsearch/elasticsearch:pull' | jq -r .token) "
44- digest=" $( curl --head -fsSL -H ' Accept: application/vnd.docker.distribution.manifest.v2+json' -H " Authorization: Bearer $authToken " " https://docker.elastic.co/v2/elasticsearch/elasticsearch/manifests/$plainVersion " | tr -d ' \r' | gawk -F ' :[[:space:]]+' ' $1 == "Docker-Content-Digest" { print $2 }' ) "
45-
46- # Format image reference (image@sha)
47- upstreamImageDigest=" $upstreamImage @$digest "
48-
44+ digest=" $( curl --head -fsSL -H ' Accept: application/vnd.docker.distribution.manifest.v2+json' -H " Authorization: Bearer $authToken " " https://docker.elastic.co/v2/elasticsearch/elasticsearch/manifests/$plainVersion " | tr -d ' \r' | gawk -F ' :[[:space:]]+' ' $1 == "Docker-Content-Digest" { print $2 }' ) "
45+
46+ # Format image reference (image@sha)
47+ upstreamImageDigest=" $upstreamImage @$digest "
48+
4949 (
5050 set -x
5151 sed '
You can’t perform that action at this time.
0 commit comments