-
Notifications
You must be signed in to change notification settings - Fork 183
Add a blog: Introduction to EventWatcher #5787
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
Conversation
Signed-off-by: t-kikuc <[email protected]>
Signed-off-by: t-kikuc <[email protected]>
Signed-off-by: t-kikuc <[email protected]>
Signed-off-by: t-kikuc <[email protected]>
Signed-off-by: t-kikuc <[email protected]>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #5787 +/- ##
==========================================
+ Coverage 27.17% 27.21% +0.03%
==========================================
Files 507 506 -1
Lines 53423 53563 +140
==========================================
+ Hits 14520 14577 +57
- Misses 37796 37871 +75
- Partials 1107 1115 +8 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Deployment typically requires manifest changes, and PipeCD doesn't directly trigger deployments from CI pushes. | ||
|
||
So, how can we "**deploy using a new image (etc.) after CI completion**"? It's annoying to manually update the manifest repo each time. |
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.
Deployment typically requires manifest changes, and PipeCD doesn't directly trigger deployments from CI pushes. | |
So, how can we "**deploy using a new image (etc.) after CI completion**"? It's annoying to manually update the manifest repo each time. | |
Deployment typically requires manifest changes. So, how can we "**deploy using a new image (etc.) after CI completion**"? It's annoying to update the manifest repo manually each time. |
nits
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.
thanks, i fixed 602e41e
- 1-3. Develop new app code and store the results (container images, etc.) in a container registry | ||
- **4.** Publish an event in CI to pass the new image URI to PipeCD | ||
- **5.** Piped detects the event | ||
- **6.** Update the manifest repo by replacing the image URI |
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.
- **6.** Update the manifest repo by replacing the image URI | |
- **6.** Update the manifest repo using the data provided that belongs to the event (image URI for example) |
nits
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.
thanks, i fixed
Signed-off-by: t-kikuc <[email protected]>
--data=ghcr.io/xxx/helloworld:v0.2.0 | ||
``` | ||
|
||
For GitHub Actions, using PipeCD's official `actions-event-register` is recommended (configurations are the same): |
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.
For GitHub Actions, using PipeCD's official `actions-event-register` is recommended (configurations are the same): | |
If you're using GitHub Actions as your CI, using PipeCD's official `actions-event-register` is recommended (configurations are the same): |
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.
thanks, i fixed
a0fdd04
For GitHub Actions, using PipeCD's official `actions-event-register` is recommended (configurations are the same): | ||
|
||
https://github.com/marketplace/actions/pipecd-register-event | ||
|
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.
(Example) Using actions-event-register
to trigger an event named helloworld-image-update
to change the image URI to ghcr.io/xxx/helloworld:v0.2.0
:
- uses: pipe-cd/[email protected]
with:
api-address: ${{ secrets.API_ADDRESS }}
api-key: ${{ secrets.API_KEY }}
event-name: helloworld-image-update
data: ghcr.io/xxx/helloworld:v0.2.0
I think clarify with an example could be better 👀
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.
thanks, i fixed
a0fdd04
Signed-off-by: t-kikuc <[email protected]>
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.
Thank you!
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.
Thank you!
What this PR does:
as title.
translated from my own japanese article: https://zenn.dev/cadp/articles/pipecd-eventwatcher-intro
Why we need it:
EventWatcher is an essential feature, but it's so hard to understand for beginners.
Which issue(s) this PR fixes:
Does this PR introduce a user-facing change?: