Skip to content

Commit

Permalink
Update RELEASE and docs to v0.49.3 (#5315)
Browse files Browse the repository at this point in the history
Signed-off-by: Yoshiki Fujikane <ffjlabo@gmail.com>
  • Loading branch information
ffjlabo authored Nov 7, 2024
1 parent 7475ea8 commit bc18017
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 1 deletion.
2 changes: 1 addition & 1 deletion RELEASE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Generated by `make release` command.
# DO NOT EDIT.
tag: v0.49.2
tag: v0.49.3

releaseNoteGenerator:
showCommitter: false
Expand Down
2 changes: 2 additions & 0 deletions docs/content/en/docs-v0.49.x/user-guide/command-line-tool.md
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,8 @@ pipectl event register \
--data=gcr.io/pipecd/example:v0.1.0
```

See more on [usage of Event Watcher](./event-watcher.md).

### Encrypting the data you want to use when deploying

Encrypt the plaintext entered either in stdin or via the `--input-file` flag.
Expand Down
32 changes: 32 additions & 0 deletions docs/content/en/docs-v0.49.x/user-guide/event-watcher.md
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,38 @@ pipectl event register \

Note that it is considered a match only when labels are an exact match.

### [optional] Using contexts

You can also attach additional metadata to the event.
This information can be added as a trailer to the git commit when Event Watcher using the GIT_UPDATE handler.
This can be useful when attaching information from the source code repository to the manifest repository.

For example, you can attach the source code commit link to the manifest repository.

```bash
pipectl event register \
--address=CONTROL_PLANE_API_ADDRESS \
--api-key=API_KEY \
--name=sample \
--data=gcr.io/pipecd/helloworld:v0.48.0 \
--contexts Source-Commit-Hash=xxxxxxx,Source-Commit-URL=https://github.com/pipe-cd/pipecd/commit/xxxxxxx
```

```bash
# In manifest repository
$ git show
commit ff46cdc9a3ce87a9a66436269251a4870ac55183 (HEAD -> main, origin/main, origin/HEAD)
Author: ffjlabo <pipecd.dev@gmail.com>
Date: Wed Oct 30 16:56:36 2024 +0900
Replace values with "gcr.io/pipecd/helloworld:v0.48.0" set by Event "simple"
Source-Commit-Hash: xxxxxxx
Source-Commit-URL: https://github.com/pipe-cd/pipecd/commit/xxxxxxx
```

![](/images/event-watcher-contexts.png)

## Examples
Suppose you want to update your configuration file after releasing a new Helm chart.

Expand Down

0 comments on commit bc18017

Please sign in to comment.