-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Documentation: start writing v4-specific docs
Signed-off-by: Hank Donnay <[email protected]>
- Loading branch information
Showing
7 changed files
with
128 additions
and
2 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
--- | ||
name: Deploy Master Documentation | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
- development-4.0 # Remove this when the branch switch happens. | ||
paths: | ||
- 'Documentation/**' | ||
|
||
jobs: | ||
deploy-documentation: | ||
name: Deploy Documentation | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Setup | ||
uses: peaceiris/actions-mdbook@v1 | ||
with: | ||
mdbook-version: 'latest' | ||
- run: mdbook build | ||
- name: Deploy | ||
uses: peaceiris/actions-gh-pages@v3 | ||
with: | ||
user_name: 'github-actions[bot]' | ||
user_email: 'github-actions[bot]@users.noreply.github.com' | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
publish_dir: ./book | ||
keepFiles: true |
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 |
---|---|---|
@@ -1 +1,2 @@ | ||
vendor/ | ||
book/ |
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,6 @@ | ||
# Summary | ||
|
||
- [Operation](./TODO.md) | ||
- [API](./TODO.md) | ||
- [Contribution](./TODO.md) | ||
- [Releases](./contribution/releases.md) |
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 @@ | ||
# Contribution |
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,49 @@ | ||
# Releases | ||
|
||
Clair releases are cut roughly every three months and actively maintained for | ||
six. | ||
|
||
This means that bugfixes should be landed on `master` (if applicable) and then | ||
marked for backporting to a minor version's release branch. The process for | ||
doing this is not yet formalized. | ||
|
||
## Process | ||
|
||
### Minor | ||
|
||
When cutting a new minor release, two things need to be done: creating a tag and | ||
creating a release branch. This can be done like so: | ||
|
||
```sh | ||
git tag -as v4.x.0 HEAD | ||
git push upstream HEAD:release-4.x tag v4.x.0 | ||
``` | ||
|
||
Then, a "release" needs to be created in the Github UI using the created tag. | ||
|
||
### Patch | ||
|
||
A patch release is just like a minor release with the caveat that minor version | ||
tags should *only* appear on release branches and a new branch does not need to | ||
be created. | ||
|
||
```sh | ||
git checkout release-4.x | ||
git tag -as v4.x.1 HEAD | ||
git push upstream tag v4.x.1 | ||
``` | ||
|
||
Then, a "release" needs to be created in the Github UI using the created tag. | ||
|
||
### Creating Artifacts | ||
|
||
Clair's artifact release process is automated and driven off the releases in | ||
Github. | ||
|
||
Publishing a new release in the Github UI automatically triggers the creation of | ||
a complete source archive and a container. The archive is attached to the | ||
release, and the container is pushed to the | ||
[`quay.io/projectquay/clair`](https://quay.io/repository/projectquay/clair) | ||
repository. | ||
|
||
This is all powered by a Github Action in `.github/workflows/cut-release.yml`. |
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,14 @@ | ||
[book] | ||
title = "Clair Documentation" | ||
authors = ["Clair Authors"] | ||
description = "Documentation for Clair." | ||
src = "Documentation" | ||
language = "en" | ||
|
||
[build] | ||
build-dir = "book" | ||
create-missing = true | ||
|
||
[output.html] | ||
git-repository-url= "https://github.com/quay/clair" | ||
preferred-dark-theme = "coal" |