-
Notifications
You must be signed in to change notification settings - Fork 2
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
Added a script for sending commits #259
base: master
Are you sure you want to change the base?
Conversation
workers/release/README.md
Outdated
@@ -6,26 +6,32 @@ This worker is needed to save releases with commits or/and source-maps uploaded | |||
|
|||
**Current implementation supports only single Rabbit prefetch count (SIMULTANEOUS_TASKS=1)** | |||
|
|||
## Source maps delivery scheme | |||
## Delivery scheme |
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.
## Delivery scheme | |
## Release delivery scheme |
@@ -6,26 +6,32 @@ This worker is needed to save releases with commits or/and source-maps uploaded | |||
|
|||
**Current implementation supports only single Rabbit prefetch count (SIMULTANEOUS_TASKS=1)** | |||
|
|||
## Source maps delivery scheme | |||
## Delivery scheme | |||
|
|||
1. User wants to deploy project | |||
2. He runs deploy script on the server and it runs static builder, for example Webpack. | |||
3. After Webpack finished his job, our [Webpack Plugin](https://github.com/codex-team/hawk.webpack.plugin) gets a source maps for new bundles and sends them to us. | |||
|
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.
add item about commits
workers/release/README.md
Outdated
``` | ||
|
||
4. Collector accepts file and give a task for ReleaseWorker for saving it to DB | ||
5. ReleaseWorker saves it to DB. | ||
4. Collector accepts files and give a task for ReleaseWorker for saving it to the database. |
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.
4. Collector accepts files and give a task for ReleaseWorker for saving it to the database. | |
4. Collector accepts commits and source map files and give a task for ReleaseWorker for saving it to the database. |
workers/release/README.md
Outdated
5. ReleaseWorker saves commits and source maps to the database. | ||
|
||
## Script for sending comments | ||
To make it easier to send commits, you can use a [shell script](./scripts/commits.sh) that will take the last few commits and send them to the collector |
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.
To make it easier to send commits, you can use a [shell script](./scripts/commits.sh) that will take the last few commits and send them to the collector | |
To make it easier to send commits, you can use a [shell script](./scripts/commits.sh) that will take the last few commits and send them to the collector |
workers/release/scripts/commits.sh
Outdated
@@ -0,0 +1,92 @@ | |||
#!/bin/sh |
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.
move it to the separate repository (hawk-release
for example), because it is not related to workers.
Closed in codex-team/hawk.releases#1 |
Added a script to make it a little easier to send comments to the collector. The first step towards cli