Skip to content

ci: sync Terraform-managed workflows from dev to main - #28

Closed
notchjpl wants to merge 1 commit into
mainfrom
chore/sync-workflows-to-main
Closed

ci: sync Terraform-managed workflows from dev to main#28
notchjpl wants to merge 1 commit into
mainfrom
chore/sync-workflows-to-main

Conversation

@notchjpl

Copy link
Copy Markdown
Contributor

Brings the Terraform-managed GitHub Actions workflows on main up to date with dev.

Why

These workflows are generated from config_texts/github_metaversecloud.tf and written by Terraform to the dev branch only, so main never received the recent changes:

  • a buildtime step plus a BUILD_TIME build-arg, stamping the image build time into the image
  • paths-ignore: ['argo/**'] on the dev build trigger

main is what matters for production: a release event builds from the tag, and the tag points at a main commit, so aws_prod_release.yml on main is the file that actually runs for prod builds. Until it carries the BUILD_TIME build-arg, prod images are built without it and /api/system/health reports BUILD_TIME: "NOT SET".

Why paths-ignore matters

It is now the only guard against a rebuild loop. Argo CD Image Updater writes the image digest back to dev; that commit used to be marked [skip ci], but [skip ci] also suppresses pull_request events — keyed on the PR HEAD commit — which silently killed every dev -> main release PR: no run, no check suite, no Auto Release. [skip ci] has been removed and replaced by the path filter, which cannot leak into PR events.

Scope

Only these files are touched, copied verbatim from dev:

  • .github/workflows/aws_dev_release_gitops.yml
  • .github/workflows/aws_prod_release.yml

Deliberately not included: application code, argo/overlays/dev/kustomization.yaml (the Image Updater digest pin, which belongs on the deploy branch only under the two-branch contract), and any other unreleased dev work. This branch is cut from main and carries the workflow files alone, so merging it will not drag unreleased changes into main.

Legacy workflow files present on main but removed on dev are left untouched — that cleanup is a separate decision.

Adds the buildtime step + BUILD_TIME build-arg and the argo/ paths-ignore
guard, which Terraform writes to the dev branch only. aws_prod_release.yml
on main is the file that runs for release builds, so without this prod
images are built without BUILD_TIME.

Workflow files only - no application code and no argo overlay digest pin.
@notchjpl notchjpl closed this Aug 16, 2026
@notchjpl
notchjpl deleted the chore/sync-workflows-to-main branch August 16, 2026 22:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant