Add release tag handling to deploy workflow #9

Open
florianbeisel wants to merge 1 commit from codex/update-github-actions-deploy-workflow into main
florianbeisel commented 2026-01-28 10:12:13 +01:00 (Migrated from github.com)

Motivation

  • Enable CI to trigger on release tag pushes (e.g. v*) so releases can build and publish images from tags.
  • Ensure release/tag builds produce image tags named after the release (in addition to the sha-... tag) and that the deployment job runs for release tags as well as main.

Description

  • Updated on.push in .github/workflows/deploy.yml to include tag pattern "v*" so tag pushes trigger the workflow.
  • Added REF_NAME_SHORT (${{ github.ref_name }}) and a refs/tags/* branch in the build step so tagged releases add -t ${IMAGE}:${REF_NAME_SHORT} alongside the sha-... tag and still push to both ${INTERNAL_IMAGE} and ${GHCR_IMAGE}.
  • Removed the requirement that PR_NUMBER be present for tag builds by handling the refs/tags/* case separately.
  • Adjusted the deploy job if condition to run on refs/heads/main or tag refs via startsWith(github.ref, 'refs/tags/') so deploys occur for releases and main.

Testing

  • No automated tests were run because this is a CI workflow-only change; validation should be performed by observing the next tag or main push in CI execution.

Codex Task

### Motivation - Enable CI to trigger on release tag pushes (e.g. `v*`) so releases can build and publish images from tags. - Ensure release/tag builds produce image tags named after the release (in addition to the `sha-...` tag) and that the deployment job runs for release tags as well as `main`. ### Description - Updated `on.push` in `.github/workflows/deploy.yml` to include tag pattern `"v*"` so tag pushes trigger the workflow. - Added `REF_NAME_SHORT` (`${{ github.ref_name }}`) and a `refs/tags/*` branch in the build step so tagged releases add `-t ${IMAGE}:${REF_NAME_SHORT}` alongside the `sha-...` tag and still push to both `${INTERNAL_IMAGE}` and `${GHCR_IMAGE}`. - Removed the requirement that `PR_NUMBER` be present for tag builds by handling the `refs/tags/*` case separately. - Adjusted the `deploy` job `if` condition to run on `refs/heads/main` or tag refs via `startsWith(github.ref, 'refs/tags/')` so deploys occur for releases and main. ### Testing - No automated tests were run because this is a CI workflow-only change; validation should be performed by observing the next tag or main push in CI execution. ------ [Codex Task](https://chatgpt.com/codex/tasks/task_e_6979d1a777d4832ab712417e1d1c0d0b)
chatgpt-codex-connector[bot] commented 2026-01-28 10:12:17 +01:00 (Migrated from github.com)

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

You have reached your Codex usage limits for code reviews. You can see your limits in the [Codex usage dashboard](https://chatgpt.com/codex/settings/usage). To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your [settings](https://chatgpt.com/codex/settings/code-review).
changeset-bot[bot] commented 2026-01-28 13:18:58 +01:00 (Migrated from github.com)

⚠️ No Changeset found

Latest commit: 64b1edcaf0

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

### ⚠️ No Changeset found Latest commit: 64b1edcaf07da9fc47791c90745e72b379213e44 Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. **If these changes should result in a version bump, you need to add a changeset.** [Click here to learn what changesets are, and how to add one](https://github.com/changesets/changesets/blob/main/docs/adding-a-changeset.md). [Click here if you're a maintainer who wants to add a changeset to this PR](https://github.com/florianbeisel/forest-friend-invites/new/codex/update-github-actions-deploy-workflow?filename=.changeset/tricky-islands-push.md&value=---%0A%22%40fake-scope%2Ffake-pkg%22%3A%20patch%0A---%0A%0AAdd%20release%20tag%20handling%20to%20deploy%20workflow%0A)
Commenting is not possible because the repository is archived.
No description provided.