Skip to content

Commit

Permalink
Fix creds
Browse files Browse the repository at this point in the history
  • Loading branch information
kobi-lemberg committed Mar 30, 2020
1 parent 4d9c244 commit 3d98d67
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 0 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,6 @@ ENV PATH="/opt/sbt/sbt/bin:$PATH" \
JAVA_OPTS="-XX:+UseContainerSupport -Dfile.encoding=UTF-8" \
SBT_OPTS="-Xmx2048M -Xss2M"

RUN git config --global user.email ${GITHUB_USER_EMAIL} \
&& git config --global user.name ${GITHUB_USERNAME} \
&& git config --global user.password ${GITHUB_PASSWORD}

#RUN sbt about
ENTRYPOINT ["/entrypoint.sh"]
4 changes: 4 additions & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
#!/bin/sh

set -x
git config --global user.email ${GITHUB_USER_EMAIL}
git config --global user.name ${GITHUB_USERNAME}
git config --global user.password ${GITHUB_PASSWORD}

COMMAND=$1
if [[ -z "${2}" || -z "${3}" || -z "${4}" ]]; then
echo "One or more variables are not defined, will only run command"
Expand Down

0 comments on commit 3d98d67

Please sign in to comment.