Skip to content

Commit

Permalink
Merge pull request #3 from suz-stripe/support-build-args
Browse files Browse the repository at this point in the history
convert env vars to build args for custom builds
  • Loading branch information
robdefeo authored Dec 12, 2020
2 parents 57e60c2 + be2b8e7 commit 84040c4
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
FROM dockercore/golang-cross:1.13.15
ARG GOLANG_CROSS_VERSION=1.13.15
FROM dockercore/golang-cross:${GOLANG_CROSS_VERSION}

LABEL maintainer="[email protected]"

ENV GORELEASER_VERSION=0.127.0
ENV GORELEASER_SHA=bf7e0f34d1d46041f302a0dd773a5c70ff7476c147d3a30659a5a11e823bccbd
ARG GORELEASER_VERSION=0.127.0
ARG GORELEASER_SHA=bf7e0f34d1d46041f302a0dd773a5c70ff7476c147d3a30659a5a11e823bccbd

ENV GORELEASER_DOWNLOAD_FILE=goreleaser_Linux_x86_64.tar.gz
ENV GORELEASER_DOWNLOAD_URL=https://github.com/goreleaser/goreleaser/releases/download/v${GORELEASER_VERSION}/${GORELEASER_DOWNLOAD_FILE}
ARG GORELEASER_DOWNLOAD_FILE=goreleaser_Linux_x86_64.tar.gz
ARG GORELEASER_DOWNLOAD_URL=https://github.com/goreleaser/goreleaser/releases/download/v${GORELEASER_VERSION}/${GORELEASER_DOWNLOAD_FILE}

RUN wget ${GORELEASER_DOWNLOAD_URL}; \
echo "$GORELEASER_SHA $GORELEASER_DOWNLOAD_FILE" | sha256sum -c - || exit 1; \
Expand Down

0 comments on commit 84040c4

Please sign in to comment.