15 Commits

Author SHA1 Message Date
Johan Fylling 0b326a0f54 Updating release patch scripts to not include CR in output (#6069)
Fixes: #5784

Signed-off-by: Johan Fylling <johan.dev@fylling.se>
2023-06-30 15:26:45 +02:00
Stephan Renatus 7f78653f9c build: run 'make generate' in release container (#4934)
This replaces the docker image so that we get one that has all of these
commands available: make, git, go, python2 and perl.

We can now run `make generate` in the steps used to generate the release patch,
so the release patch contains the builtin_metadata.json changes.

Before, we had been running `make generate` in the working directory, and
copied the file into the container's workdir; but that left the working
directory modified, and hindered patch application before cleaning up.

Signed-off-by: Stephan Renatus <stephan.renatus@gmail.com>
2022-07-26 12:43:59 +02:00
Stephan Renatus 687beb7541 build: integrate builtin_metadata.json handling in release process (#4763)
Fixes #4754.

Signed-off-by: Stephan Renatus <stephan.renatus@gmail.com>
2022-06-20 10:57:17 +02:00
Torin Sandall 6e7f271bb7 build: Improve CHANGELOG mentions and token usage
This commit improves the release-patch target to mention users in the
Miscellaneous section and warn if a GitHub token is not provided.

Signed-off-by: Torin Sandall <torinsandall@gmail.com>
2021-11-30 09:04:54 -08:00
Joshua Shanks c5eac6ad5b build: Update release-patch to handle bugfixes (#3446)
Bugfixes are done on branches that don't have an unreleased
section in the CHANGELOG which would cause the last line
to be deleted and the change put at the bottom of the
CHANGELOG. Now there is a test for the unreleased section
which if it exists does the old behavior. If not the new
message will be placed above the last version section.

Fixes: #2533

Signed-off-by: Joshua Shanks <jjshanks@gmail.com>

Co-authored-by: Stephan Renatus <stephan.renatus@gmail.com>
2021-05-12 10:08:04 +02:00
Torin Sandall 7559ad0f51 build: Move VERSION into version/version.go
The decision logger unit tests had to be updated to always set the
version.Version value because they are sensitive to changes in the
payload sizes.

Signed-off-by: Torin Sandall <torinsandall@gmail.com>
2020-09-11 13:26:11 -04:00
Torin Sandall cb60a6edf7 build: Update release patch generation to publish capabilities.json
Signed-off-by: Torin Sandall <torinsandall@gmail.com>
2020-07-23 19:35:22 -04:00
Patrick East 994997479f Remove "RELEASES" file from docs/website build
We were using a file with hard coded versions to display docs for, but
this complicates things if/when we need to do patch releases on
different branches from master.

Signed-off-by: Patrick East <east.patrick@gmail.com>
2019-06-13 11:31:58 -07:00
Patrick East 9228efb3da Update release process for newer docs
The process is pretty easy, just add a new line in RELEASES with the
version number. Once that git tag is available it will start to show
up on subsequent builds.

Signed-off-by: Patrick East <east.patrick@gmail.com>
2019-04-26 19:19:28 -07:00
lucperkins bb0d4e271b New OPA website (Hugo + Netlify)
Signed-off-by: lucperkins <lucperkins@gmail.com>
2019-03-26 13:45:50 -07:00
Torin Sandall 604985cd76 Fix release patch script to support LAST_VERSION
Previously the release script always computed LAST_VERSION from tags. We
recently published 0.9.3-rc tags for test purposes. This was preventing
thes cript generating the patch for the markdown/yaml files in the docs
that refer to the OPA version. These changes allow the caller to control
the LAST_VERSION so the docs get updated accordingly.

Signed-off-by: Torin Sandall <torinsandall@gmail.com>
2018-10-25 10:26:28 -07:00
Torin Sandall a048970c95 Update release patch script to cover YAML files
The script was not searching for version numbers in YAML files in the
docs. As a result the Kubernetes admission controller tutorial was out
of date.
2018-03-08 11:16:59 -08:00
Eva Xiaohui Luo 25ba04c980 Refresh OPA website
These changes contain a redesign of the OPA website. The main changes
are (1) new frontpage w/ refreshed messaging and assets and (2) docs
ported to gitbook.
2017-07-05 15:39:45 -07:00
Torin Sandall a32c2a146b Fix release patch script 2017-01-20 13:58:13 -08:00
Torin Sandall 3bc5f04b47 Improve release infrastructure
- Add script to build release artifacts from inside a container. In the past,
release artifacts have been created from a clean checkout, but this should be
much more reliable.

- Add script to generate release patch from tip. In the past, the release
patch changes have been made manually.
2016-12-22 15:54:00 -08:00