Skip to content

Commit

Permalink
chore(cleanup): remove unused files & update readme (#127)
Browse files Browse the repository at this point in the history
  • Loading branch information
dogonthehorizon authored Jan 12, 2021
1 parent 94084b6 commit da11bed
Show file tree
Hide file tree
Showing 9 changed files with 25 additions and 116 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,4 @@ tags
.vim

# End of https://www.gitignore.io/api/vim
dinghy
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@
same "printed page" as the copyright notice for easier
identification within third-party archives.

Copyright [yyyy] [name of copyright owner]
Copyright 2021 Armory, Inc.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
39 changes: 23 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,32 +2,39 @@

# dinghy

_A little boat to take you to the big boat_ - Miker
Dinghy allows you to create and maintain Spinnaker pipeline templates in source
control.

## Yo, but what do it do?
Read more in our
[documentation](https://docs.armory.io/docs/armory-admin/dinghy-enable/).

Users should be able to specify a pipeline in code in their GitHub repo. Dinghy should keep the pipeline in Spinnaker in sync with what is in the GitHub repo. Also, users should be able to make a pipeline by composing other pipelines, stages, or tasks and templating certain values.

### Deets
### How It Works

There are two primitives:
- Stage/Task templates: These are all kept in a single GitHub repo. They are json files with replacable values in them.
- Pipeline definitions: These define a pipeline for an application. You can compose stage/task templates to make a full definition.
- Stage/Task templates: These are all kept in a single GitHub repo. They are
json files with replacable values in them.
- Pipeline definitions: These define a pipeline for an application. You can
compose stage/task templates to make a full definition.

How it works:
- GitHub webhooks are sent off when either the templates or the definitions are modified.
- GitHub webhooks are sent off when either the templates or the definitions are
modified.
- Templates should be versioned by hash when they are used.
- Dinghy will keep a dependency graph of downstream templates. When a dependency is modified, the pipeline definition will be rebuilt and re-posted to Spinnaker. (sound familiar? haha)

<!-- made using ./bin/makeDiagrams.sh -->
![](diagrams/workflow.mmd.svg)
- Dinghy will keep a dependency graph of downstream templates. When a
dependency is modified, the pipeline definition will be rebuilt and re-posted
to Spinnaker. (sound familiar? haha)

### Testing manually.
### Testing Manually

curl -X POST -H "Content-Type: application/json" -d "@example/github_payload.json" http://localhost:8089/webhooks/git/github
```shell
curl -X POST \
-H "Content-Type: application/json" \
-d "@example/github_payload.json" \
http://localhost:8089/webhooks/git/github
```

(The github_payload.json file in the example directory is a minimal set for
testing the git webhook, as an example)



Dinghy is also embedded in the [arm cli](https://github.com/armory-io/arm) tool
for local validation of pipelines.
25 changes: 0 additions & 25 deletions diagrams/workflow.mmd

This file was deleted.

4 changes: 0 additions & 4 deletions diagrams/workflow.mmd.svg

This file was deleted.

25 changes: 0 additions & 25 deletions dinghy_test.go

This file was deleted.

1 change: 0 additions & 1 deletion dinghy_version

This file was deleted.

39 changes: 0 additions & 39 deletions dinghyfile

This file was deleted.

5 changes: 0 additions & 5 deletions package.json

This file was deleted.

0 comments on commit da11bed

Please sign in to comment.