diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index a46333cd17..64c53bc588 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -26,10 +26,10 @@ builder-image: before_script: - echo $CI_JOB_TOKEN | docker login -u gitlab-ci-token --password-stdin $CI_REGISTRY script: - - cd ci + - cd contrib/containers/ci - docker pull $CI_REGISTRY_IMAGE:builder-$CI_COMMIT_REF_SLUG || true - docker pull $CI_REGISTRY_IMAGE:builder-develop || true - - docker build --cache-from $CI_REGISTRY_IMAGE:builder-$CI_COMMIT_REF_SLUG --cache-from $CI_REGISTRY_IMAGE:builder-develop -t $CI_REGISTRY_IMAGE:builder-$CI_COMMIT_REF_SLUG -f Dockerfile.builder . + - docker build --cache-from $CI_REGISTRY_IMAGE:builder-$CI_COMMIT_REF_SLUG --cache-from $CI_REGISTRY_IMAGE:builder-develop -t $CI_REGISTRY_IMAGE:builder-$CI_COMMIT_REF_SLUG -f Dockerfile . - docker push $CI_REGISTRY_IMAGE:builder-$CI_COMMIT_REF_SLUG .build-depends-template: @@ -63,7 +63,7 @@ builder-image: # Let all branches share the same cache, which is ok because the depends subsystem is able to handle this properly (it works with hashes of all scripts) key: files: - - ci/Dockerfile.builder + - contrib/containers/ci/Dockerfile prefix: ${CI_JOB_NAME} paths: - depends/built @@ -115,7 +115,7 @@ builder-image: # Let all branches share the same cache, which is ok because ccache is able to handle it key: files: - - ci/Dockerfile.builder + - contrib/containers/ci/Dockerfile prefix: ${CI_JOB_NAME} paths: - cache/ccache diff --git a/.travis.yml b/.travis.yml index 27a646890b..0160ba0717 100644 --- a/.travis.yml +++ b/.travis.yml @@ -176,7 +176,7 @@ install: # Load cached builder image - if [ -f $HOST_CACHE_DIR/docker/dash-builder-$BUILD_TARGET.tar.gz ]; then zcat $HOST_CACHE_DIR/docker/dash-builder-$BUILD_TARGET.tar.gz | docker load || true; fi - travis_retry docker pull ubuntu:bionic - - travis_retry docker build -t $BUILDER_IMAGE_NAME --build-arg=USER_ID=$UID --build-arg=GROUP_ID=$UID --build-arg=BUILD_TARGET=$BUILD_TARGET -f ci/Dockerfile.builder ci + - travis_retry docker build -t $BUILDER_IMAGE_NAME --build-arg=USER_ID=$UID --build-arg=GROUP_ID=$UID --build-arg=BUILD_TARGET=$BUILD_TARGET -f contrib/containers/ci/Dockerfile ci before_script: # Make sure stdout is in blocking mode. Otherwise builds will fail due to large writes to stdout # See https://github.com/travis-ci/travis-ci/issues/4704. If this gets fixed, this line can also be removed. diff --git a/ci/Dockerfile.builder b/contrib/containers/ci/Dockerfile similarity index 100% rename from ci/Dockerfile.builder rename to contrib/containers/ci/Dockerfile