Skip to content

ci: release from signed version tags #44

Closed

Description

@uniqueg

Is your feature request related to a problem? Please describe.
The app version has to be manually raised whenever the app changes. This is likely to be forgotten and leads to cluttering of the commit history.

Describe the solution you'd like
Ideally, versions should be automatically bumped depending on the commit/merge, possibly by setting webhooks.

Describe alternatives you've considered
N/A

Additional context
N/A

Updated scope (2026-10-22, migration plan)

Why?

proTES has no releases: the version in pro_tes/version.py is bumped by hand (or not), and CI pushes images tagged latest and with the date on every push to dev. FOCA and cloud-registry release from signed version tags, with the version taken from the tag only (elixir-cloud-aai/cloud-registry#112, elixir-cloud-aai/cloud-registry#126, elixir-cloud-aai/cloud-registry#153, elixir-cloud-aai/cloud-registry#155, elixir-cloud-aai/cloud-registry#159, elixir-cloud-aai/cloud-registry#161).

How?

  1. .github/workflows/release.yaml as in cloud-registry: on v* tags, check that the tag is a release version, annotated and signed (verified by GitHub), on main, and that CI passed for its commit; release notes from docs/releases/<version>.md (no TODO) or generated; package the Helm chart with version and appVersion from the tag and versioned links (scripts/chart_readme.py); build, check and push the image (X.Y.Z, latest only for the highest stable release); GitHub release with the chart, a prerelease until 1.0.0. Publishing in the release environment (required reviewer).
  2. scripts/release_version.py with tests.
  3. Dev images from dev only for the branch head (dev and sha-<commit>, never latest), in the dev-images environment, with official Docker actions pinned to commits; remove the date tags and the third-party publish action.
  4. "Versioning and releases" in the development docs.
  5. Repository setup by an admin, as for cloud-registry: a main branch for releases (the old master, last changed in 2019, is retired), the release and dev-images environments with the Docker Hub secrets, and a tag ruleset making v* tags immutable.

Acceptance criteria

  • Pushing a signed tag vX.Y.Z on main publishes the image, chart and GitHub release with that version; unsigned, unmerged or failing commits are refused.
  • dev pushes publish dev and sha- images only.

Closes #44.

Activity

  1. changed the title [-]Automatic semantic versioning[/-] [+]ci: release from signed version tags[/+] on Oct 22, 2026
  2. added
    type: ci / cd
    type: delivery
    priority: medium
    workload: days
    status: blocked
    on Oct 22, 2026
  3. uniqueg commented on Oct 22, 2026

    @uniqueg
    MemberAuthor

    As noted above, we're adopting the release flow of FOCA and cloud-registry: the version comes only from signed vX.Y.Z tags (setuptools-scm), and a release workflow publishes the image, the Helm chart and the GitHub release (prereleases until 1.0.0). I've updated the issue accordingly.

  4. removed
    status: blocked
    on Oct 22, 2026
  5. uniqueg commented on Oct 23, 2026

    @uniqueg
    MemberAuthor

    Addition from #235/#244 (citation metadata): the release workflow also checks that CITATION.cff has the release version and a date-released that is not in the future (python scripts/citation.py check "${VERSION}"), as in Cloud Registry (elixir-cloud-aai/cloud-registry#180), since Zenodo archives each release with it. #244 adds the script and the docs, but not the workflow step, as #230 isn't merged yet; details in #230 (comment).

  6. uniqueg commented on Oct 23, 2026

    @uniqueg
    MemberAuthor

    Note from #214: proTES may temporarily pin unreleased dependencies (e.g., a FOCA dev commit and FOCA's dated development image), as cloud-registry does. scripts/check_release_pins.py (standard library only) fails while such pins are left. Until this release workflow exists, .github/workflows/release-pins.yaml runs it for each pushed v* tag (and the tests for checkouts of release tags). The release workflow must run it before publishing, as cloud-registry's release.yaml does ("Check that dependencies are releases": python scripts/check_release_pins.py), and then replace release-pins.yaml.

  7. added
    status: in progress
    on Oct 23, 2026
  8. removed
    status: in progress
    on Oct 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority: mediumtype: ci / cdtype: deliveryworkload: days

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions