Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
devtool
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
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
k8s
devtool
Commits
69f144b2
Commit
69f144b2
authored
6 years ago
by
SWE CI
Browse files
Options
Downloads
Plain Diff
Merge branch 'release/v0.1.2'
parents
5a1cc848
42f3d28d
No related branches found
Branches containing commit
Tags
v0.1.2
Tags containing commit
No related merge requests found
Pipeline
#29299
passed
6 years ago
Stage: compile
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
cmd/ci.go
+2
-2
2 additions, 2 deletions
cmd/ci.go
cmd/ci_deploy.go
+2
-3
2 additions, 3 deletions
cmd/ci_deploy.go
with
4 additions
and
5 deletions
cmd/ci.go
+
2
−
2
View file @
69f144b2
...
...
@@ -42,12 +42,12 @@ func init() {
// configCmd.PersistentFlags().String("foo", "", "A help for foo")
ciCmd
.
PersistentFlags
()
.
StringVarP
(
&
dockerRegistry
,
"registry"
,
"r"
,
""
,
"url of the docker registry"
)
ciCmd
.
PersistentFlags
()
.
StringVarP
(
&
dockerRegistryNamespace
,
"registry-namespace"
,
"n"
,
""
,
"namespace in the docker registry"
)
ciCmd
.
PersistentFlags
()
.
StringVarP
(
&
imageTag
,
"image"
,
"i"
,
""
,
"image tag for docker"
)
ciCmd
.
PersistentFlags
()
.
StringVarP
(
&
imageTag
,
"image
-tag
"
,
"i"
,
""
,
"image tag for docker"
)
ciCmd
.
PersistentFlags
()
.
StringVarP
(
&
environmentSuffix
,
"environment"
,
"e"
,
""
,
"environment suffix to append to helm release name"
)
ciCmd
.
MarkPersistentFlagRequired
(
"registry"
)
ciCmd
.
MarkPersistentFlagRequired
(
"registry-namespace"
)
ciCmd
.
MarkPersistentFlagRequired
(
"image"
)
ciCmd
.
MarkPersistentFlagRequired
(
"image
-tag
"
)
// Cobra supports local flags which will only run when this command
// is called directly, e.g.:
...
...
This diff is collapsed.
Click to expand it.
cmd/ci_deploy.go
+
2
−
3
View file @
69f144b2
...
...
@@ -63,8 +63,7 @@ func fluxDeployCi(config config.Config) error {
for
_
,
deployable
:=
range
config
.
Deployables
{
image
:=
deployable
.
Name
dockerImage
:=
dockerRegistry
+
"/"
+
dockerRegistryNamespace
+
"/"
+
image
dockerTag
:=
dockerImage
+
":"
+
imageTag
dockerImageTag
:=
image
+
":"
+
imageTag
var
releaseName
string
if
environmentSuffix
==
""
{
...
...
@@ -75,7 +74,7 @@ func fluxDeployCi(config config.Config) error {
color
.
Blue
(
"Updating Flux Release:"
,
releaseName
)
os
.
Setenv
(
"KUBE_SERVICE_NAME"
,
releaseName
)
os
.
Setenv
(
"DOCKER_IMAGE_TAG"
,
dockerTag
)
os
.
Setenv
(
"DOCKER_IMAGE_TAG"
,
docker
Image
Tag
)
os
.
Setenv
(
"CI_PROJECT_NAME"
,
image
)
err
:=
environment
.
Run
(
true
,
"fluxhelmrelease"
)
...
...
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