Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: Move IMAGE_TAG Dockerfile ARG into build phase (backport k239) #16212

Merged
merged 1 commit into from
Feb 12, 2025

Conversation

loki-gh-app[bot]
Copy link
Contributor

@loki-gh-app loki-gh-app bot commented Feb 12, 2025

Backport ed061b3 from #15983


What this PR does / why we need it:

In order to access the variable ${IMAGE_TAG} that is provided as --build-arg IMAGE_TAG=x.x.x in the docker build command, the ARG definition in the Dockerfile needs to be inside the build step block, otherwise it is empty.

Special notes for your reviewer:

Fix for ##15939

In order to access the variable ${IMAGE_TAG} that is provided as `--build-arg IMAGE_TAG=x.x.x` in the `docker build` command, the `ARG` definition in the Dockerfile needs to be inside the build step block, otherwise it is empty.

Signed-off-by: Christian Haudum <christian.haudum@gmail.com>
(cherry picked from commit ed061b3)
@loki-gh-app loki-gh-app bot added the backport label Feb 12, 2025
@loki-gh-app loki-gh-app bot requested a review from a team as a code owner February 12, 2025 11:37
@loki-gh-app loki-gh-app bot requested a review from chaudum February 12, 2025 11:38
Copy link
Contributor

@ashwanthgoli ashwanthgoli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@ashwanthgoli ashwanthgoli merged commit 0d84681 into k239 Feb 12, 2025
64 checks passed
@ashwanthgoli ashwanthgoli deleted the backport-15983-to-k239 branch February 12, 2025 11:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants