From 5d9e0ea80bff8c12747887e19cdab93b71a8312b Mon Sep 17 00:00:00 2001 From: Krzysztof Wilczynski Date: Wed, 4 Dec 2019 10:01:46 +0100 Subject: [PATCH] Pin version of assume-role-arn to a specific release. The GitHub action should track a stable release of `assume-role-arn` utility, thus we pin version to ensure that the correct binary will be installed into to the Docker container during build. This change pins version of assume-role-arn to `0.3.3`. Signed-off-by: Krzysztof Wilczynski --- Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 57f3096..a4cccee 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,7 +2,7 @@ ARG alpine_version="${alpine_version:-latest}" FROM alpine:${alpine_version} AS builder -ARG version="${version:-latest}" +ARG version="${version:-0.3.3}" RUN set -eux && \ mkdir -p /build @@ -15,6 +15,7 @@ RUN set -eux && \ apk --no-cache --update add ca-certificates && \ apk --no-cache --update add curl && \ apk --no-cache --update add jq && \ + echo "Using assume-role-arn version: $version" && \ if [ "x${version}" = 'xlatest' ]; then \ curl -s 'https://api.github.com/repos/nordcloud/assume-role-arn/releases/latest' | \ jq -r '.assets[] | select(.name | contains("linux")) | .browser_download_url' | \ @@ -25,7 +26,7 @@ RUN set -eux && \ FROM alpine:${alpine_version} -ARG version="${version:-latest}" +ARG version="${version:-0.3.3}" LABEL \ org.label-schema.schema-version="1.0" \