website: Use latest release rather than edge#7781
Merged
charlieegan3 merged 1 commit intoopen-policy-agent:mainfrom Jul 31, 2025
Merged
website: Use latest release rather than edge#7781charlieegan3 merged 1 commit intoopen-policy-agent:mainfrom
charlieegan3 merged 1 commit intoopen-policy-agent:mainfrom
Conversation
srenatus
reviewed
Jul 17, 2025
c42c4ad to
1e76158
Compare
✅ Deploy Preview for openpolicyagent ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
620b9b5 to
766c8a3
Compare
| git diff-index --quiet HEAD -- || (echo "Latest release build must be done without working changes" && exit 1) | ||
| git fetch --tags origin | ||
| $(eval CURRENT_BRANCH := $(shell git branch --show-current)) | ||
| git checkout $$(git describe --tags --abbrev=0) |
Contributor
There was a problem hiding this comment.
Should we assert the tag format here. I.e. that it fits the v<semver> structure we use for release tags?
Contributor
Author
There was a problem hiding this comment.
Yeah that makes sense. I have created a new tag locally to check:
$ git tag --sort=-version:refname | head -n 3
v2.15.0-fffff
v1.6.0
v1.5.1
$ git tag --sort=-version:refname | grep -E '^v[0-9]+\.[0-9]+\.[0-9]+$' | head -1
v1.6.053482ee to
f39d2ac
Compare
Contributor
|
💭 Does this mean we'll stop building the website on code pushes to main, but only build it on tag pushes, if the tag also is the latest one? |
f39d2ac to
a952ed4
Compare
Contributor
Author
|
The site will still be built on pushed to main, but only the latest tag will be used. This is because it's 'easier' and more robust than sending events at the correct time to build the site. In theory. |
e349088 to
bc9c208
Compare
bc9c208 to
8f724be
Compare
Merged
Signed-off-by: Charlie Egan <charlie@styra.com>
8f724be to
2a3ba46
Compare
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is intended to make the default view of the OPA site and docs from the latest release, rather than from edge.
Deploy preview command will need to show edge, but using that to test the prod command atm.
When
make netlify-latestwas used on the preview, we see that the site was built from the latest release: