Repository navigation
Unify tools setup, add release policy gate, and automate versioned tag publishing - #390
Draft
serhat andic (serhatandic) wants to merge 2 commits into
Draft
serhat andic (serhatandic) wants to merge 2 commits into
serhat andic (serhatandic) wants to merge 2 commits into
Conversation
…ned tag publishing
Hadolint:
|
Hadolint:
|
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.
Problem
citusdata/toolsclones at two old tags (v0.8.36andv0.8.38) inside the repo checkout.update_version.ymlaccepts onlyproject_version, has no guard against patch or off-line releases, does not pass exact published DEB versions or PG versions frompkgvars, and checks out withGITHUB_TOKEN(so generated PRs do not trigger CI).latest,alpine,pg16,pg17); versioned tags (14.3.0,14.3,14) require a separate manualgit tag+git pushstep, which has been missed (Docker Hub still has no14.3.0).publish_docker_images_on_manual.ymlhas no image matrix, so manual runs fail trying to build every target sequentially.Approach
.github/actions/setup-tools) pinned tov0.8.42that clonestoolsoutside the checkout, and use it across all 5 workflows.citus_series=14topkgvarsand updateupdate_version.ymlto takesource_tag,deb_version, andforce_docker: skip patch/off-line releases unlessforce_dockeris true, pass stablepkgvarsPG versions totoolsupdate_docker.py, and use the GitHub App token on checkout.master, havepublish_docker_images_on_push.ymlcreate annotated tagv<VERSION>if it does not exist yet and callpublish_docker_images_on_tag.yml(workflow_call) in the same run so versioned tags publish automatically without triggering on PG-base-only PRs.choiceinput topublish_docker_images_on_manual.yml, and switchdocker loginto--password-stdin.Depends on: citusdata/tools#450 merged and tagged as
v0.8.42(CI will fail cloningv0.8.42until that tag exists). Supersedes #386.Testing
v13.6.0(45801457581), skipped patchv14.3.1(45801463687), and stopped with an error onv15.0.0becausepkgvarsis still on Citus 14 (45801470671).14.3.0PR #1 without touchingpostgres-19, avoided opening a duplicate PR on a repeat run (45805787620), created tag v14.3.0 and ran the versioned publish workflow on merge (45806154319), and skipped tagging on a later README edit (45806732747).