Skip to content

Commit

Permalink
Merge pull request #5 from kwilczynski/feature/pin-version
Browse files Browse the repository at this point in the history
Pin version of assume-role-arn to a specific release.
  • Loading branch information
tdi committed Dec 4, 2019
2 parents d8f6671 + 5d9e0ea commit cdce0e4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Dockerfile
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 cdce0e4

Please sign in to comment.