Skip to content

Commit

Permalink
Pin version of assume-role-arn to a specific release.
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
Krzysztof Wilczynski committed Dec 4, 2019
1 parent d8f6671 commit 5d9e0ea
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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' | \
Expand All @@ -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" \
Expand Down

0 comments on commit 5d9e0ea

Please sign in to comment.