Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
docker-makefile-sample
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
sample
docker-makefile-sample
Commits
bbd0de54
Commit
bbd0de54
authored
Jun 26, 2024
by
Chavee Issariyapat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update Makefile
parent
4209c181
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletions
+7
-1
Makefile
+7
-1
No files found.
Makefile
View file @
bbd0de54
# a helper shell script
# a helper shell script
MAKE_VERSION
=
1.
2.9
MAKE_VERSION
=
1.
3.0
define
MAKEFUNCTIONCODE
define
MAKEFUNCTIONCODE
function
hasChanges()
{
function
hasChanges()
{
...
@@ -190,6 +190,8 @@ buildx: init pre-build docker-buildx post-build
...
@@ -190,6 +190,8 @@ buildx: init pre-build docker-buildx post-build
cleanbuild
:
init pre-build docker-cleanbuild post-build
cleanbuild
:
init pre-build docker-cleanbuild post-build
cleanbuildx
:
init pre-build docker-cleanbuildx post-build
pre-build
:
pre-build
:
post-build
:
post-build
:
...
@@ -204,6 +206,10 @@ post-init:
...
@@ -204,6 +206,10 @@ post-init:
docker-buildx
:
docker-buildx
:
docker buildx build
--push
--platform
linux/arm64/v8,linux/amd64
$(BUILDARG)
--tag
$(IMAGE)
:
$(VERSIONHASH)
--tag
$(IMAGE)
:
$(VERSION)
--tag
$(IMAGE)
:latest
$(PROJECTPATH)
docker buildx build
--push
--platform
linux/arm64/v8,linux/amd64
$(BUILDARG)
--tag
$(IMAGE)
:
$(VERSIONHASH)
--tag
$(IMAGE)
:
$(VERSION)
--tag
$(IMAGE)
:latest
$(PROJECTPATH)
docker-cleanbuildx
:
docker buildx build
--push
--platform
linux/arm64/v8,linux/amd64
$(BUILDARG)
--no-cache
--tag
$(IMAGE)
:
$(VERSIONHASH)
--tag
$(IMAGE)
:
$(VERSION)
--tag
$(IMAGE)
:latest
$(PROJECTPATH)
docker-build
:
docker-build
:
docker build
--platform
=
linux/amd64
$(BUILDARG)
-t
$(IMAGE)
:
$(VERSIONHASH)
$(PROJECTPATH)
docker build
--platform
=
linux/amd64
$(BUILDARG)
-t
$(IMAGE)
:
$(VERSIONHASH)
$(PROJECTPATH)
@
DOCKER_MAJOR
=
$(
shell
docker
-v
| sed
-e
's/.*version //'
-e
's/,.*//'
| cut
-d
\.
-f1
)
;
\
@
DOCKER_MAJOR
=
$(
shell
docker
-v
| sed
-e
's/.*version //'
-e
's/,.*//'
| cut
-d
\.
-f1
)
;
\
...
...
Write
Preview
Markdown
is supported
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