mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 03:52:49 +01:00
build: relocate CI docker container to dedicated directory
This commit is contained in:
parent
c2f62ae24b
commit
607707f9f9
@ -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
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user