Commit c109ac4b authored by Agustin Henze's avatar Agustin Henze

Merge branch 'ccache_on_build' into 'master'

Add support to ccache use on docker-build.sh

Closes #27

See merge request !63
parents 42c4d759 07cb36d0
......@@ -28,11 +28,20 @@ stages:
image: registry.salsa.debian.org/salsa-ci-team/images/gbp
services:
- docker:dind
cache:
paths:
- ${CCACHE_WORK_DIR}
variables:
CCACHE_TMP_DIR: ${CI_PROJECT_DIR}/../.ccache
CCACHE_WORK_DIR: ${WORKING_DIR}/.ccache
script:
- |
curl https://prittiau.debian.net/post -X POST --data "{\"project_id\":$CI_PROJECT_ID, \"pipeline_id\":$CI_PIPELINE_ID}" --header "Content-Type: application/json"
- mkdir -p ${CCACHE_WORK_DIR}
- mv ${CCACHE_WORK_DIR} ${CCACHE_TMP_DIR}
- gbp pull --ignore-branch --pristine-tar --track-missing
- gbp buildpackage --git-ignore-branch --git-export-dir=${WORKING_DIR} --git-builder="docker-build.sh registry.salsa.debian.org/salsa-ci-team/images/dockerbuilder:${RELEASE}"
- mv ${CCACHE_TMP_DIR} ${CCACHE_WORK_DIR}
.build-package: &build-package
<<: *build-definition
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment