Fixes to releaser.sh (fleetd TUF) (#36409)

This commit is contained in:
Lucas Manuel Rodriguez 2025-11-27 17:06:52 -03:00 committed by GitHub
parent bb07b47d12
commit f332f61c97
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 11 additions and 9 deletions

View file

@ -168,7 +168,16 @@ GITHUB_TOKEN_1PASSWORD_PATH="Private/Github Token/password" \
2. Smoke test release on staging.
3. Push to production:
```sh
ACTION=release-to-production COMPONENT=fleetd VERSION=1.23.0 ./tools/tuf/releaser.sh
ACTION=release-to-production \
COMPONENT=fleetd \
VERSION=1.23.0 \
./tools/tuf/releaser.sh
```
4. Create PR with changelog against `main` (it may fail with conflicts when using patch branches):
```sh
ACTION=create-fleetd-release-pr \
VERSION=1.23.0 \
./tools/tuf/releaser.sh
```
4. Smoke test release on production.

View file

@ -173,13 +173,6 @@ release_fleetd_to_edge () {
echo "Releasing fleetd to edge..."
ORBIT_TAG="orbit-v$VERSION"
prompt "A tag will be pushed to trigger a Github Action to build desktop and orbit."
pushd "$GIT_REPOSITORY_DIRECTORY"
git tag "$ORBIT_TAG"
git push origin "$ORBIT_TAG"
if [[ "$SKIP_PR" != "1" ]]; then
create_fleetd_release_pr
fi
popd
DESKTOP_ARTIFACT_DOWNLOAD_DIRECTORY="$ARTIFACTS_DOWNLOAD_DIRECTORY/desktop"
mkdir -p "$DESKTOP_ARTIFACT_DOWNLOAD_DIRECTORY"
"$GO_TOOLS_DIRECTORY/download-artifacts" desktop \
@ -316,7 +309,7 @@ release_to_production () {
# Sleeping 5 minutes to allow for Cloudflare caches to clear.
sleep 300
gh workflow run "Update documentation of current versions of TUF fleetd components"
prompt "Make sure to close the issues and $milestone_url milestone following https://fleetdm.com/handbook/engineering#conclude-current-milestone."
prompt "When releasing to stable, make sure to close the issues and $milestone_url milestone following https://fleetdm.com/handbook/engineering#conclude-current-milestone."
fi
}