Skip to content

fix: add ARG GO_IMAGE to Dockerfile for updatecli pipeline - #1029

Draft
briandowns with Copilot wants to merge 2 commits into
mainfrom
copilot/fix-updatecli-job
Draft

fix: add ARG GO_IMAGE to Dockerfile for updatecli pipeline#1029
briandowns with Copilot wants to merge 2 commits into
mainfrom
copilot/fix-updatecli-job

Conversation

Copilot AI commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

The updatecli CI job was failing because the updatebuildbase.yaml pipeline reads the current build base version via ARG GO_IMAGE in the Dockerfile, but package/Dockerfile had the image hardcoded directly in the FROM instruction — the ARG didn't exist, causing an empty transformer input error.

Changes

  • package/Dockerfile: Add ARG GO_IMAGE=rancher/hardened-build-base:v1.26.5b1 before the first stage and reference it via ${GO_IMAGE}, matching the pattern used across the rancher ecosystem
# Before
FROM rancher/hardened-build-base:v1.26.5b1 AS builder

# After
ARG GO_IMAGE=rancher/hardened-build-base:v1.26.5b1
FROM ${GO_IMAGE} AS builder
  • updatecli/updatecli.d/updatebuildbase.yaml: Update example version strings in comments to reflect the current version

The updatecli pipeline "Update build base version" was failing because
it expected `ARG GO_IMAGE=rancher/hardened-build-base:...` in the
Dockerfile to read and update the build base version, but the Dockerfile
had the image hardcoded directly in the `FROM` instruction.

Add `ARG GO_IMAGE=rancher/hardened-build-base:v1.26.5b1` before the
first `FROM` and change the FROM to use `${GO_IMAGE}`. This matches
the pattern used in other rancher repos (e.g., ecm-distro-tools) and
is what the updatecli config was designed to work with.

Also update the example version comments in updatebuildbase.yaml to
reflect the current version.
Copilot AI changed the title [WIP] Fix failing GitHub Actions job updatecli fix: add ARG GO_IMAGE to Dockerfile for updatecli pipeline Jul 14, 2026
Copilot AI requested a review from briandowns July 14, 2026 21:51
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