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
9daaf1eb
Commit
9daaf1eb
authored
Mar 10, 2020
by
Chavee Issariyapat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update to 1.2.0 fix bug commit 0 does not show
parent
580f262f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
Makefile
+6
-7
No files found.
Makefile
View file @
9daaf1eb
# a helper shell script
# a helper shell script
MAKE_VERSION
=
1.
1.9
MAKE_VERSION
=
1.
2.0
define
MAKEFUNCTIONCODE
define
MAKEFUNCTIONCODE
function
hasChanges()
{
function
hasChanges()
{
...
@@ -15,14 +15,13 @@ define MAKEFUNCTIONCODE
...
@@ -15,14 +15,13 @@ define MAKEFUNCTIONCODE
# new use tag from git of the form -> 1.0.1-2-3b10c420
# new use tag from git of the form -> 1.0.1-2-3b10c420
TAGN
=
$$
(
git describe | sed
-e
"s/-g.*//"
)
TAGN
=
$$
(
git describe | sed
-e
"s/-g.*//"
)
T1
=
$$
(
echo
$$
TAGN | sed
-e
"s/-.*//"
)
TV
=
$$
(
echo
$$
TAGN | sed
-e
"s/-.*//"
)
T2
=
$$
(
echo
$$
TAGN | sed
-e
"s/^[^
\-
]*//"
)
TM
=
$$
(
echo
$$
TAGN | sed
-e
"s/^[^
\-
]*//"
)
if
[
-z
"$$TM"
]
if
[
$T2
==
""
]
then
then
T
2
=
"-0"
T
M
=
"-0"
fi
fi
echo
$$T
1$$T2
echo
$$T
V$$TM
}
}
function
getBaseTag()
{
function
getBaseTag()
{
...
...
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