From 5669ae70cc3a59d0c2988310dbd88d43c796b115 Mon Sep 17 00:00:00 2001 From: Leigh Morresi <275001+dgtlmoon@users.noreply.github.com> Date: Tue, 2 Feb 2021 19:11:38 +0100 Subject: [PATCH] Adding ARG to Dockerfile --- Dockerfile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 73dae1b0..e44eace7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,7 +10,11 @@ WORKDIR /app ENV PYTHONUNBUFFERED=1 # 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