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
2442f7b8
Commit
2442f7b8
authored
Jun 23, 2022
by
Chavee Issariyapat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update to 1.2.6
parent
b87a2199
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
1 deletions
+15
-1
Makefile
+15
-1
No files found.
Makefile
View file @
2442f7b8
# a helper shell script
MAKE_VERSION
=
1.2.
5
MAKE_VERSION
=
1.2.
6
define
MAKEFUNCTIONCODE
function
hasChanges()
{
...
...
@@ -145,6 +145,9 @@ endif
ifeq
(deploy,$(firstword
$(MAKECMDGOALS)))
doit
=
true
endif
ifeq
(deploy-dev,$(firstword
$(MAKECMDGOALS)))
doit
=
true
endif
ifeq
(show-deploy,$(firstword
$(MAKECMDGOALS)))
doit
=
true
endif
...
...
@@ -323,3 +326,14 @@ ifdef a
@kubectl
annotate
deployment/$(DEPLOYMENT)
kubernetes.io/
change-cause
=
"
$(a)
"
$(DEPLOYARG)
endif
endif
deploy-dev
:
init release.conf
ifndef
c
@echo Deploy failed
:
Please make deploy with c={context}
else
@cat
k8s/deployment-dev.yaml
|
sed
"s/{{IMAGE_TAG}}/$(VERSIONHASH)/g"
|
kubectl
apply
-f
-
$(DEPLOYARG)
@rm
.make-function
ifdef
a
@kubectl
annotate
deployment/$(DEPLOYMENT)
kubernetes.io/
change-cause
=
"
$(a)
"
$(DEPLOYARG)
endif
endif
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