summaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authorArkadiusz Hiler <arkadiusz.hiler@intel.com>2019-09-02 10:21:12 +0300
committerArkadiusz Hiler <arkadiusz.hiler@intel.com>2019-09-03 18:26:45 +0300
commit8e18030b0312b1a5f4d7dfe305690e6b9c09cea8 (patch)
tree95c768a090e0775fe8647cc10d8d89f71addb6ff /Dockerfile
parent2a894cfeaefd359edc37182508cae2219612eabd (diff)
Dockerfile: Make sure that we use correct base image
Correct one = the one tagged with current commit, so in case of parallel pipelines we don't take the wrong "latest". Signed-off-by: Arkadiusz Hiler <arkadiusz.hiler@intel.com> Reviewed-by: Petri Latvala <petri.latvala@intel.com>
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Dockerfile b/Dockerfile
index 7ea266d3..6f2f62ec 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,5 +1,5 @@
-# Version number to bump for force image rebuild: 0
-FROM build-fedora
+ARG CI_COMMIT_SHA
+FROM build-fedora:commit-$CI_COMMIT_SHA
COPY opt-igt /opt/igt
COPY .gitlab-ci/docker-help.sh /usr/local/bin/docker-help.sh