Adding ARG to Dockerfile

pull/11/head
Leigh Morresi 4 years ago
parent 084dcde410
commit 5669ae70cc

@ -10,7 +10,11 @@ WORKDIR /app
ENV PYTHONUNBUFFERED=1 ENV PYTHONUNBUFFERED=1
# Attempt to store the triggered commit # Attempt to store the triggered commit
RUN echo "docker hub: $SOURCE_COMMIT" >/source.txt
ARG SOURCE_COMMIT
ARG SOURCE_BRANCH
RUN echo "commit: $SOURCE_COMMIT branch: $SOURCE_BRANCH" >/source.txt
RUN [ ! -d "/datastore" ] && mkdir /datastore RUN [ ! -d "/datastore" ] && mkdir /datastore

Loading…
Cancel
Save