Skip to content

Commit

Permalink
Fix: Set value for environment variable
Browse files Browse the repository at this point in the history
The docker build command was failing midway since `ENV` needs two
parameters - the name of the variable, and its value. In the
dockerfile, the variable had no value set against it - causing
the error

Fix this by introducing a new build arg, and setting this as the
value for the environment variable
  • Loading branch information
notsatan committed Oct 22, 2021
1 parent 4580459 commit bb45bd6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ RUN apk add --update make
RUN mkdir /silver-surfer
WORKDIR /silver-surfer
ADD . /silver-surfer/
ENV GITHUB_TOKEN
ARG AUTH_TOKEN
ENV GITHUB_TOKEN=${AUTH_TOKEN}
ARG RELEASE
RUN if [ "$RELEASE" = "goreleaser" ]; then echo `make release`; fi
RUN GOOS=linux make
Expand Down

0 comments on commit bb45bd6

Please sign in to comment.