From 5944c7af73c0e822b4f1d89c5563d38228776b7e Mon Sep 17 00:00:00 2001 From: Jeffrey Phillips Freeman <the@jeffreyfreeman.me> Date: Thu, 1 Oct 2020 19:32:28 -0400 Subject: [PATCH] Made CI force a fresh rebuild on images every time, this ensures an up to date image. --- .gitlab-ci.yml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 4088664..b31c4e5 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -23,9 +23,8 @@ amdgpu: else REV="$CI_COMMIT_REF_NAME"; fi - - docker pull "${REPOSITORY}-amdgpu:${REV}" || true - docker build --network=host --pull -t "${REPOSITORY}-amdgpu:${REV}" - --cache-from "${REPOSITORY}-amdgpu:${REV}" + --no-cache --build-arg "aparapiver=${VERSION}" "amdgpu/" - docker push "${REPOSITORY}-amdgpu" @@ -42,9 +41,8 @@ nvidia: else REV="$CI_COMMIT_REF_NAME"; fi - - docker pull "${REPOSITORY}-nvidia:${REV}" || true - docker build --network=host --pull -t "${REPOSITORY}-nvidia:${REV}" - --cache-from "${REPOSITORY}-nvidia:${REV}" + --no-cache --build-arg "aparapiver=${VERSION}" "nvidia/" - docker push "${REPOSITORY}-nvidia" @@ -61,9 +59,8 @@ pocl: else REV="$CI_COMMIT_REF_NAME"; fi - - docker pull "${REPOSITORY}-pocl:${REV}" || true - docker build --network=host --pull -t "${REPOSITORY}-pocl:${REV}" - --cache-from "${REPOSITORY}-pocl:${REV}" + --no-cache --build-arg "aparapiver=${VERSION}" "pocl/" - docker push "${REPOSITORY}-pocl" -- GitLab