18 Commits

Author SHA1 Message Date
Sean Eagan
6cf4a057f4 Release notes gen: Fix previous tag calculation
The latest version of gren (0.17.3) has a bug [0] which causes
it to include all issues rather than just than since the last
tag. This pins to 0.17.1 to avoid this bug.

This also limits the previous tag search to airshipctl semver tags,
that is those without a krm function prefix.

[0]: https://github.com/github-tools/github-release-notes/issues/279

Change-Id: Ib3524bef7a52da97a89f0bc408a1b2e1072e64b1
Signed-off-by: Sean Eagan <seaneagan1@gmail.com>
2021-03-25 08:27:44 -05:00
Sean Eagan
4d8c3bbcc0 Move git tag fetching to release notes job
It was added to the wrong job originally [0].

[0]: https://review.opendev.org/c/airship/airshipctl/+/780940

Change-Id: I023bf1b8f0e133f190dc320bf45e4c79efd5de2b
Signed-off-by: Sean Eagan <seaneagan1@gmail.com>
2021-03-22 09:46:41 -05:00
Zuul
d407142498 Merge "Add v prefix to semver image tags" 2021-03-17 17:49:42 +00:00
Zuul
04149bd8ae Merge "Ensure semver publishing for all krm functions" 2021-03-17 17:49:20 +00:00
Sean Eagan
f1e42b8444 Add v prefix to semver image tags
This adds some context e.g. `v1` instead of just `1`, and matches
what some nearby projects use, such as the kpt container functions [0].

[0]: https://github.com/GoogleContainerTools/kpt/issues/1358

Change-Id: I2026fba873a0f074233e7628de35e53f1f880027
Signed-off-by: Sean Eagan <seaneagan1@gmail.com>
2021-03-17 08:36:25 -05:00
Sean Eagan
b4ffab50f9 Ensure semver publishing for all krm functions
Instead of a static list, read list of krm-functions from containing directory.
This mirrors what we do for git SHA tag publishing for these images upon merge.

Before this, the cloud-init krm function was missing from the list.

Change-Id: Iacb5bbcc84c5eeb9a6bb6cebbf674c3068f103b0
Signed-off-by: Sean Eagan <seaneagan1@gmail.com>
2021-03-17 08:27:54 -05:00
Sean Eagan
0e7e263dfa Fix calculation of previous tag for release notes gen
The gren tool uses the git tag history to calculate the previous tag
to diff against. By default, the checkout action doesn't fetch the tag
history, this configures it to do so [1].

[0]: https://github-tools.github.io/github-release-notes/options.html#tags
[1]: https://github.com/actions/checkout#fetch-all-history-for-all-tags-and-branches

Relates-To: #354
Change-Id: I90fb4deecba842517945707a12e3b1bde2610f74
Signed-off-by: Sean Eagan <seaneagan1@gmail.com>
2021-03-16 13:08:15 -05:00
Sean Eagan
0234731e51 Fix tag name in release workflow
The gren tool expects the tag name to not include the refs/tags prefix,
so this removes that from the `github.ref` variable.

Change-Id: Ied065b3e021841d0a04d2ccfd6e743171f2a8f54
Signed-off-by: Sean Eagan <seaneagan1@gmail.com>
2021-03-10 11:54:48 -06:00
Sean Eagan
1eed1efd91 Fix github release workflow
The previous fix [0] did not account for permissions to create the
symlink at /usr/local/bin/gren. Running the full npm install
with sudo should solve any further permissions issues.

[0]: https://review.opendev.org/c/airship/airshipctl/+/776697

Change-Id: Ieb9dfbc699504e341306cb5b7a7a9e2ee90b637f
Signed-off-by: Sean Eagan <seaneagan1@gmail.com>
2021-02-23 10:27:53 -06:00
Sean Eagan
43698482ab Fix github release workflow npm permissions
Change-Id: I14d6ac20f10ed1aec0fa83108e92ba1dbf116dfe
Signed-off-by: Sean Eagan <seaneagan1@gmail.com>
2021-02-19 12:55:30 -06:00
Sean Eagan
e34f1ea83e Fix github release trigger
The `git.ref` variable includes the `refs/tags/` prefix [0].

[0]: https://docs.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#github-context

Change-Id: I2880c7cc1463e52cc8ca6605db80b2a46cb5a449
2021-02-11 14:37:40 -06:00
Sean Eagan
55aa0837b7 Publish binaries on release
Relates-To: #414
Change-Id: I4a84129e0f04553d27203dc7d945a9893e164108
2021-02-09 14:25:38 +00:00
Sean Eagan
c89b5c21b4 Implement semver for container images
When release git tags are pushed for:

airshipctl e.g. v1.2.3
krm functions e.g. replacement-transformer-v1.2.3

This publishes corresponding image tags to the corresponding quay repo
e.g. 1.2.3 (full), 1.2 (minor), 1 (major).

This follows common practice [0] allowing consumers to keep up to date with
latest changes, while at the same time avoiding risk i.e. breaking changes.

The quay secrets have been imported into github [1] to be accessed
by this github action.

[0]: https://medium.com/@mccode/using-semantic-versioning-for-docker-image-tags-dfde8be06699
[1]: https://docs.github.com/en/free-pro-team@latest/actions/reference/encrypted-secrets

Closes: #418
Change-Id: Iba2522bcb5d5693fa0e98126bcf31551bb37fc85
2021-01-27 15:52:50 +00:00
Sean Eagan
40a711ab88 Github action to create release notes
When a new tag is pushed (and mirrored to github), this github action
generates release notes, and creates a draft release which can be
published via the github UI after any manual verification or edits.

An example draft release, generated using act [0] is available for review
for those with sufficient access:

https://github.com/airshipit/airshipctl/releases

This could be extended in the future to accomplish other release tasks:

- add version-tagged image to quay
- integrate with goreleaser[1] (publish go binaries)
- publish documentation

[0]: https://github.com/nektos/act
[1]: https://goreleaser.com

Change-Id: Iedb70b0c330df0356fa74d94c1d4a45c3343cc2e
Relates-To: #354
Closes: #390
2020-11-13 15:11:06 -06:00
Drew Walters
98f14aaa93 Update Airship vulnerability link
The Airship vulnerability documentation has moved [0]. This change
updates SECURITY.md to point to the correct location.

[0] https://docs.airshipit.org/learn/vulnerabilities.html

Change-Id: Iea843a3399bc7836f5645c3ca81603e2e9ca7356
Signed-off-by: Drew Walters <andrew.walters@att.com>
2020-05-19 13:45:09 +00:00
Drew Walters
099d638c97 Add SECURITY.md
All Airship projects are moving to GitHub issues. This change adds a
GitHub security policy that links to the official Airship vulnerability
management process [0]. When users on GitHub click "New Issue" on this
GitHub repository, they will see an option to report a security
vulnerability, which will direct them to our official policy.

[0] https://airship-docs.readthedocs.io/en/latest/security/vulnerabilities.html

Change-Id: Iaf060dd0085c21f0c4f18f100e3e053b5ceedbed
Signed-off-by: Drew Walters <andrew.walters@att.com>
2020-02-20 16:57:57 -06:00
Ian H. Pittwood
22bb19eaca Adds triage label to issue templates
Adds a triage label by default to the issue templates for project
maintainers to identify new issues that still need to be evaluated,
labeled, and addressed.

Change-Id: I9508cce273e7834ccff5eb77c0dd6a1e028dc299
2020-02-12 13:55:38 -06:00
Drew Walters
4503669442 Add GitHub issue templates
Airship is migrating from Jira to GitHub issues. This change adds GitHub
issues templates [0] for bug reports and feature requests.

[0] https://help.github.com/en/github/building-a-strong-community/configuring-issue-templates-for-your-repository

Change-Id: I696ad7befdd6f5d8f584f0ea14dbfe7182ad6d12
Signed-off-by: Drew Walters <andrew.walters@att.com>
2020-02-06 16:34:31 -06:00