-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Spinnaker account #101
Open
rparadowski
wants to merge
9
commits into
master
Choose a base branch
from
spinnaker_account
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Spinnaker account #101
Changes from 8 commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
0da8675
Make spinnaker able to deploy in kind
rafalparadowski 3b9ce6b
Add triggering pipelines do circleci
rafalparadowski 3f29174
Added API check if pipeline succeededwq
rafalparadowski 7f9f839
Fixed condition for API query
rafalparadowski 33d816d
Install jq
rafalparadowski a98671e
Usefull prints, handling of NOT_STARTED and RUNNING pipeline status
rafalparadowski a506957
add error on timeout
rafalparadowski be529bf
5 seconds sleep to let pipeline start
rafalparadowski 446f514
Moved triggering pipelines to separate script
rafalparadowski File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
{ | ||
"apiVersion": "apps/v1", | ||
"kind": "Deployment", | ||
"metadata": { | ||
"name": "nginx-deployment" | ||
}, | ||
"spec": { | ||
"replicas": 1, | ||
"selector": { | ||
"matchLabels": { | ||
"app": "nginx" | ||
} | ||
}, | ||
"template": { | ||
"metadata": { | ||
"labels": { | ||
"app": "nginx", | ||
"lb": "nginx" | ||
} | ||
}, | ||
"spec": { | ||
"containers": [ | ||
{ | ||
"name": "nginx", | ||
"image": "nginx:latest", | ||
"ports": [ | ||
{ | ||
"containerPort": 80 | ||
} | ||
] | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
local pipelines = import 'pipeline.libsonnet'; | ||
|
||
local deployment = import 'deployNginx.json'; | ||
|
||
local app = "jsonnetapp"; | ||
local webhookTrigger(name, source) = pipelines.triggers | ||
.webhook(name) | ||
.withSource(source); | ||
|
||
local moniker = pipelines.moniker(app); | ||
|
||
local deployManifest (env, manifest = deployment) = pipelines.stages | ||
.deployManifest('Deploy nginx to ' + env) | ||
.withAccount('inner-kind') | ||
.withManifests(manifest) | ||
.withNamespaceOverride(env) | ||
.withMoniker(moniker); | ||
|
||
local deployNginx = deployManifest('spinnaker'); | ||
local triggerPipeline = webhookTrigger("deploy_nginx", "deploy_nginx"); | ||
|
||
pipelines.pipeline() | ||
.withName('Test Deployment') | ||
.withId('test_deployment') | ||
.withApplication(app) | ||
.withStages(deployNginx) | ||
.withTriggers(triggerPipeline) |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you move this to a script? You can store it in
.circleci
directory.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I did.
But I have no idea, why there is such behaviour:
When executed by cirleci, it's not entering the while loop (not printing Checking pipeline $PIPELINE_NAME status; PIPELINE_NAME probably equals ""), but when I rerun job with ssh, and execute script from terminal on machine, it iterates. Do you have any suggestions?