Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Faustin Lammler
mariadb-10.1
Commits
a16be71a
Commit
a16be71a
authored
Mar 31, 2019
by
Otto Kekäläinen
Browse files
Update gitlab-ci.yml build stanza to match latest Salsa-CI standards
parent
2efba547
Changes
1
Hide whitespace changes
Inline
Side-by-side
debian/gitlab-ci.yml
View file @
a16be71a
...
...
@@ -13,18 +13,29 @@ stages:
.build
:
&build
stage
:
build
image
:
registry.salsa.debian.org/salsa-ci-team/images/gbp
cache
:
paths
:
-
${CCACHE_WORK_DIR}
variables
:
CCACHE_TMP_DIR
:
${CI_PROJECT_DIR}/../.ccache
CCACHE_WORK_DIR
:
${WORKING_DIR}/.ccache
services
:
-
docker:dind
artifacts
:
expire_in
:
18
0 day
name
:
"
$CI_
BUILD
_NAME"
expire_in
:
9
0 day
name
:
"
$CI_
JOB_NAME:$CI_COMMIT_REF
_NAME"
paths
:
-
${WORKING_DIR}/
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
-
while
true
; do sleep 600; echo "10 minutes passed" >&2; done &
# Progress keeper since build is long and silent
-
gbp buildpackage --git-ignore-branch --git-export-dir=${WORKING_DIR}
-us -uc
--git-builder="docker-build.sh registry.salsa.debian.org/salsa-ci-team/images/dockerbuilder:${RELEASE}" | tail -n
10000
# Keep log under 4 MB
-
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}" | tail -n
10000
# Keep log under 4 MB
-
du -shc ${WORKING_DIR}/*
# Show total file size of artifacts. Must stay are under 100 MB.
-
mv ${CCACHE_TMP_DIR} ${CCACHE_WORK_DIR}
build package stretch
:
<<
:
*build
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment