Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
raspbian-base
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Docker Build Images
raspbian-base
Commits
ec7b5256
Commit
ec7b5256
authored
6 years ago
by
Markus Frosch
Browse files
Options
Downloads
Patches
Plain Diff
Improve Makefile variables for GitLab and set defaults
parent
36ed4860
No related branches found
No related tags found
No related merge requests found
Pipeline
#3245
failed
6 years ago
Stage: build
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+0
-4
0 additions, 4 deletions
.gitlab-ci.yml
Makefile
+12
-8
12 additions, 8 deletions
Makefile
with
12 additions
and
12 deletions
.gitlab-ci.yml
+
0
−
4
View file @
ec7b5256
...
...
@@ -5,10 +5,6 @@ image: docker:latest
services
:
-
docker:dind
variables
:
DOCKER_REGISTRY
:
${CI_REGISTRY}
DOCKER_IMAGE_PREFIX
:
${CI_PROJECT_PATH}/
before_script
:
-
docker info
-
docker login -u gitlab-ci-token -p ${CI_JOB_TOKEN} ${CI_REGISTRY}
...
...
This diff is collapsed.
Click to expand it.
Makefile
+
12
−
8
View file @
ec7b5256
IMAGE_PREFIX
:=
${
DOCKER_IMAGE_PREFIX
}
ifeq
($(IMAGE_PREFIX),)
IMAGE_PREFIX
:=
icinga/raspbian-base
ifndef
CI_REGISTRY
CI_REGISTRY
:=
registry.icinga.com
endif
REGISTRY
:=
${
DOCKER_REGISTRY
}
ifneq
($(REGISTRY),)
IMAGE_PREFIX
:=
$(
REGISTRY
)
/
$(
IMAGE_PREFIX
)
ifeq
($(CI_PROJECT_PATH),)
CI_PROJECT_PATH
:=
build-docker/raspbian
endif
ifeq
($(CI_COMMIT_REF_NAME),)
CI_COMMIT_REF_NAME
:=
$(
shell git rev-parse
--abbrev-ref
HEAD
)
endif
FROM
:=
$(
shell
grep
FROM Dockerfile |
cut
-d
" "
-f2
)
IMAGE
:=
$(
IMAGE_PREFIX
)
debootstrap
IMAGE
:=
$(
CI_PROJECT_PATH
)
/
${
CI_COMMIT_REF_NAME
}
ifneq
($(CI_REGISTRY),)
IMAGE
:=
$(
CI_REGISTRY
)
/
$(
IMAGE
)
endif
QEMU_VERSION
=
v3.1.0-2
QEMU_STATIC
=
https://github.com/multiarch/qemu-user-static/releases/download/
$(
QEMU_VERSION
)
/qemu-arm-static.tar.gz
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment