Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
opensuse
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
opensuse
Commits
19252dd6
Commit
19252dd6
authored
6 years ago
by
Markus Frosch
Browse files
Options
Downloads
Patches
Plain Diff
Add latest tag for x86_64
parent
6d4f5061
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#2510
failed
6 years ago
Stage: build
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
image.mk
+13
-1
13 additions, 1 deletion
image.mk
with
13 additions
and
1 deletion
image.mk
+
13
−
1
View file @
19252dd6
...
...
@@ -14,6 +14,12 @@ FROM := $(shell grep FROM Dockerfile | cut -d" " -f2)
VERSION
:=
$(
shell
basename
`
pwd
`
)
IMAGE
:=
$(
IMAGE_PREFIX
)$(
VERSION
)
:
$(
VARIANT
)
ifeq
($(VARIANT),x86_64)
IMAGE_EXTRA
:=
$(
IMAGE_PREFIX
)$(
DIST
)
:latest
else
IMAGE_EXTRA
:=
endif
all
:
pull build
pull
:
...
...
@@ -21,10 +27,16 @@ pull:
docker pull
"
$(
FROM
)
"
build
:
docker build
--cache-from
"
$(
IMAGE
)
"
--tag
"
$(
IMAGE
)
"
.
docker build
--cache-from
"
${
IMAGE
}
"
--tag
"
$(
IMAGE
)
"
.
ifneq
($(IMAGE_EXTRA),)
docker tag
"
$(
IMAGE
)
"
"
$(
IMAGE_EXTRA
)
"
endif
push
:
docker push
"
$(
IMAGE
)
"
ifneq
($(IMAGE_EXTRA),)
docker push
"
$(
IMAGE_EXTRA
)
"
endif
clean
:
if
(
docker inspect
--type
image
"
$(
IMAGE
)
"
>
/dev/null 2>&1
)
;
then
docker rmi
"
$(
IMAGE
)
"
;
fi
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