Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Docker Build Images
raspbian-base
Commits
cda63907
Commit
cda63907
authored
Sep 12, 2018
by
Markus Frosch
Browse files
Add gitlab-ci
parent
52029b7c
Pipeline
#2322
passed with stage
in 3 minutes and 32 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
0 → 100644
View file @
cda63907
stages
:
-
build
image
:
docker:latest
services
:
-
docker:dind
variables
:
DOCKER_REGISTRY
:
registry.icinga.com
DOCKER_IMAGE_PREFIX
:
${CI_PROJECT_PATH}/
before_script
:
-
docker info
-
docker login -u gitlab-ci-token -p $CI_JOB_TOKEN registry.icinga.com
-
apk -U add make curl
.build
:
&build
stage
:
build
tags
:
-
docker-build
script
:
-
make -C ${CI_JOB_NAME}
-
'
[
"$CI_COMMIT_REF_NAME"
!=
master
]
||
make
-C
${CI_JOB_NAME}
push'
cache
:
paths
:
-
'
${CI_JOB_NAME}/*.tar*'
stretch
:
<<
:
*build
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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