-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from suz-stripe/support-build-args
convert env vars to build args for custom builds
- Loading branch information
Showing
1 changed file
with
6 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; \ | ||
|