AS LOCAL
to the command.earthly +build
, we'll see a build
directory show up locally with a go-example
file inside of it.SAVE IMAGE
command.earthly +docker
will save an image named go-example
with the tag latest
.FROM
or COPY
, outputs will not be produced. Take this Earthfile for example.earthly +docker
will not produce any output. In other words, you will not have a build/go-example
written locally, but running earthly +build
will still produce output as expected.BUILD
command. If you want to use COPY
or FROM
and still have Earthly create build/go-example
locally, you'll need to use the BUILD
command to do so.earthly +docker
in this case will now output build/go-example
locally.--push
flag to SAVE IMAGE
is not enough, we'll also need to invoke push when we call earthly. earthly --push +docker
.--push
as part of a RUN
command to define commands that have an effect external to the build. These kinds of effects are only allowed to take place if the entire build succeeds.--push
will only produce output if called directly, earthly --push +target-with-push
or via a BUILD
command. Calling a target via FROM
or COPY
will not invoke --push
.