Skip to content

chore: run Publish Syncroot artifacts on self-hosted runners - #695

Merged
alvlia merged 2 commits into
mainfrom
arealmaas/syncroot-self-hosted
Aug 20, 2026
Merged

chore: run Publish Syncroot artifacts on self-hosted runners#695
alvlia merged 2 commits into
mainfrom
arealmaas/syncroot-self-hosted

Conversation

@arealmaas

@arealmaas arealmaas commented Aug 17, 2026

Copy link
Copy Markdown
Contributor

Runs Publish Syncroot artifacts on the self-hosted runners, so deploys stop queueing behind GitHub-hosted ones.

Refs #642, Altinn/altinn-platform#3838

Why this was blocked until now

The workflow calls yq in three steps, and yq wasn't in the runner image. Added in Altinn/altinn-platform#3893 and rolled out in Altinn/altinn-platform#3895 — the runners now run gh-runner:v0.10.0, so this is ready to merge.

Testing

Ran the workflow's own steps inside the released v0.10.0 image, as the non-root runner user:

  • Both input paths work — at22 + AzureSQL (all three yq steps) and prod + Sqlite (the two database steps correctly skipped)
  • yq output is byte-identical to older yq versions, so nothing changes versus GitHub-hosted runners
  • flux 2.6.4 installs, and pushtagpull completes a full artifact roundtrip with the updated image tag intact

Not covered locally: Azure OIDC login and egress from the runner VNet to altinncr.azurecr.io. Worth dispatching against at22 first.

🤖 Generated with Claude Code

Moves the last remaining migratable workflow onto the self-hosted
runners, so deploys no longer queue behind shared GitHub-hosted runners.

This was previously blocked because the step "Update image tag" and the
two database steps call `yq`, which is preinstalled on GitHub-hosted
runners but was missing from the gh-runner image. Added upstream in
Altinn/altinn-platform#3893.

Everything else this workflow needs is already proven on these runners:
- actions/checkout and azure/login work (Node 24 and Azure CLI are in
  the image)
- the flux CLI installs into $RUNNER_TOOL_CACHE, the same mechanism
  hashicorp/setup-terraform uses in the Terraform workflows migrated in
  #681, which pass
- OIDC (id-token: write) works, as used by those same workflows

Refs #642, Altinn/altinn-platform#3838

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@alvlia
alvlia merged commit 025fcaf into main Aug 20, 2026
4 checks passed
@alvlia
alvlia deleted the arealmaas/syncroot-self-hosted branch August 20, 2026 09:21
tjololo pushed a commit to Altinn/altinn-platform that referenced this pull request Aug 20, 2026
runner_image was hardcoded in the shared module, so every image bump
rolled out to all eight repositories at once with no way to try it
somewhere first.

Exposes it as a variable with the current v0.8.0 as the default,
following the same pattern as runner_cpu and runner_memory, and overrides
it to v0.10.0 for info.altinn.no only. The other seven repositories keep
v0.8.0 until the default is moved up.

v0.10.0 adds yq (#3893), which unblocks Altinn/info.altinn.no#695. It
also picks up corepack from 0.9.0. Base image digest and runner version
are unchanged between v0.8.0 and v0.10.0, so the difference is purely
additive.

Refs #3838

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
tjololo added a commit to Altinn/altinn-platform that referenced this pull request Aug 20, 2026
* feat(gh-runners): allow per-repository runner image override

runner_image was hardcoded in the shared module, so every image bump
rolled out to all eight repositories at once with no way to try it
somewhere first.

Exposes it as a variable with the current v0.8.0 as the default,
following the same pattern as runner_cpu and runner_memory, and overrides
it to v0.10.0 for info.altinn.no only. The other seven repositories keep
v0.8.0 until the default is moved up.

v0.10.0 adds yq (#3893), which unblocks Altinn/info.altinn.no#695. It
also picks up corepack from 0.9.0. Base image digest and runner version
are unchanged between v0.8.0 and v0.10.0, so the difference is purely
additive.

Refs #3838

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

* remove info.altinn.no override of image

* set default to latest released version

---------

Co-authored-by: Are Almaas <arealmaas@gmail.com>
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
Co-authored-by: tjololo <1145298+tjololo@users.noreply.github.com>
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.

2 participants