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

multi stage builds: Error: determining starting point for build: no FROM statement found #5868

Open
r10r opened this issue Dec 9, 2024 · 1 comment

Comments

@r10r
Copy link
Contributor

r10r commented Dec 9, 2024

Trying to set the base image name using a build argument fails in 1.37.5 for multi stage builds.
With buildah 1.33.6 this works as expected.

Example

ARG image_build
FROM $image_build as build
RUN echo foo >bar

ARG image_release
FROM $image_release
COPY --from=build bar bar

buildah bud --build-arg image_build=alpine:latest --build-arg image_release=alpine:3.20.3

[1/2] STEP 1/3: FROM alpine:latest AS build
[1/2] STEP 2/3: RUN echo foo >bar
[1/2] STEP 3/3: ARG image_release
Error: determining starting point for build: no FROM statement found
buildah --version
buildah version 1.37.5 (image-spec 1.1.0, runtime-spec 1.2.0)
@r10r
Copy link
Contributor Author

r10r commented Dec 9, 2024

To limit the bisect maybe a bit more: buildah v1.33.11 works fine too and 1.38.0 fails

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

No branches or pull requests

1 participant