Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
fedora
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
fedora
Commits
967e1f21
Commit
967e1f21
authored
6 years ago
by
Markus Frosch
Browse files
Options
Downloads
Patches
Plain Diff
Adapt default image name and cache behavior
parent
a94918fa
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#2298
failed
6 years ago
Stage: build
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
image.mk
+6
-3
6 additions, 3 deletions
image.mk
with
6 additions
and
3 deletions
image.mk
+
6
−
3
View file @
967e1f21
...
...
@@ -2,7 +2,7 @@ OS := fedora
IMAGE_PREFIX
:=
${
DOCKER_IMAGE_PREFIX
}
ifeq
($(IMAGE_PREFIX),)
IMAGE_PREFIX
:=
icinga/
IMAGE_PREFIX
:=
icinga/
$(
OS
)
/
endif
REGISTRY
:=
${
DOCKER_REGISTRY
}
...
...
@@ -11,16 +11,19 @@ IMAGE_PREFIX := $(REGISTRY)/$(IMAGE_PREFIX)
endif
FROM
:=
$(
shell
grep
FROM Dockerfile |
cut
-d
" "
-f2
)
ifeq
($(VERSION),)
VERSION
:=
$(
shell
basename
`
pwd
`
)
IMAGE
:=
$(
IMAGE_PREFIX
)$(
OS
)
-
$(
VERSION
)$(
IMAGE_SUFFIX
)
endif
IMAGE
:=
$(
IMAGE_PREFIX
)$(
VERSION
)
:
$(
VARIANT
)
all
:
pull build
pull
:
docker pull
"
$(
IMAGE
)
"
||
true
docker pull
"
$(
FROM
)
"
build
:
docker build
-
t
"
$(
IMAGE
)
"
.
docker build
-
-cache-from
"
$(
IMAGE
)
"
--tag
"
$(
IMAGE
)
"
.
push
:
docker push
"
$(
IMAGE
)
"
...
...
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