Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[v15] Add tag build support to Makefile #38661

Merged
merged 4 commits into from
Feb 28, 2024

Conversation

camscale
Copy link
Contributor

@camscale camscale commented Feb 27, 2024

Backport teleport PRs that update the Makefile for tag build support:

The backports were trival with no conflicts.

Companion: https://github.com/gravitational/teleport.e/pull/3547
Backport: #38415
Backport: #38475
Backport: #38481
Issue: #20729
Issue: #20732
Test-run: https://github.com/gravitational/teleport.e/actions/runs/8058311677
Test-run: https://github.com/gravitational/teleport.e/actions/runs/8060536475


This PR will not be merged until after the companion PR has been merged,
at which point an e ref update commit will be added to this PR to
point at that merged PR.

@camscale camscale added the no-changelog Indicates that a PR does not require a changelog entry label Feb 27, 2024
@github-actions github-actions bot requested review from probakowski and tcsc February 27, 2024 06:28
@camscale camscale force-pushed the camh/v15/backport-tag-build branch from 14b9749 to 6db0216 Compare February 27, 2024 07:11
When building a linux-amd64 archive, make a copy of it with the
`centos7` tag as the linux-amd64 build works on centos7. We stopped
doing a centos7-specific build a while ago, but we still have the
archive on our releases page.

This helps unify the `release-amd64` and `release-amd64-centos7`
targets, which currently do the same thing except for the GitHub Actions
workflow that creates the centos7 archive only for the latter target.
This will allow us to get rid of that target as that latter target will
no longer be called when Drone is removed.

Also add a `-p` when making RELEASE_DIR as sometimes the parent
directory has not yet been created.
Add a `tag-publish` recipe to the Makefile to start a workflow run of
the tag-publish workflow. The tag published is the current version tag
as defined by `$(VERSION)` in the Makefile. The version of the
`tag-publish` workflow used is that one tagged with `v$(VERSION)`.
Add a `tag-build` recipe to the Makefile to kick off a tag build on
GitHub Actions. Currently we cannot trigger the tag build in GitHub
Actions as the teleport repository is public so we are very careful with
credentials in it, and credentials are needed to run the `tag-build`
workflow in the `teleport.e` repository.

The new process for building a tag is to run `make update-tag` as usual,
but to then follow that with `make tag-build` to start the build.
Updates include:
* Make the access list gRPC service use the cache. (gravitational/teleport.e#3544)
* Prevent overflow in sort functions provided to slices.SortFunc (#gravitational/teleport.e3549)
* Remove all quiet/silent flags from role checks. (#gravitational/teleport.e3540)
* [v15] fix: Lower bcrypt cost when testing (#gravitational/teleport.e3553)
* [v15] Add top-level workflow for building a tagged release (#gravitational/teleport.e3547)
@camscale camscale force-pushed the camh/v15/backport-tag-build branch from 6db0216 to 884f943 Compare February 28, 2024 05:04
@camscale camscale enabled auto-merge February 28, 2024 05:04
@camscale camscale added this pull request to the merge queue Feb 28, 2024
Merged via the queue into branch/v15 with commit 1134852 Feb 28, 2024
34 checks passed
@camscale camscale deleted the camh/v15/backport-tag-build branch February 28, 2024 06:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport no-changelog Indicates that a PR does not require a changelog entry size/sm
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants