-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Address earthly/earthly#3996
- Loading branch information
Showing
6 changed files
with
194 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
VERSION 0.8 | ||
|
||
PROJECT earthly-technologies/core | ||
|
||
FROM alpine | ||
|
||
foo: | ||
RUN echo "dynamic target ok" | ||
|
||
basic: | ||
LET ext=txt | ||
COPY hello.$ext /tmp | ||
RUN ls -l /tmp | ||
|
||
dynamic-build: | ||
LET target=+foo | ||
BUILD $target | ||
|
||
dynamic-arg: | ||
LET foo=bar | ||
ARG baz=$foo | ||
RUN echo "hello $baz" | ||
|
||
copy-target: | ||
ARG foo | ||
RUN echo $foo > x | ||
SAVE ARTIFACT x | ||
|
||
copy-target-2: | ||
RUN echo "foobar" > x | ||
SAVE ARTIFACT x | ||
|
||
copy-target-dynamic: | ||
LET name="+copy-target" | ||
COPY ($name/x --foo=goodbye) . | ||
RUN cat x | ||
|
||
copy-target-dynamic-2: | ||
LET name="+copy-target-2" | ||
COPY $name/x . | ||
RUN cat x |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
VERSION 0.8 | ||
|
||
PROJECT earthly-technologies/core | ||
|
||
FROM alpine | ||
|
||
foo: | ||
RUN echo "dynamic target ok" | ||
|
||
basic: | ||
LET ext="" | ||
SET ext=txt | ||
COPY hello.$ext /tmp | ||
RUN ls -l /tmp | ||
|
||
dynamic-build: | ||
LET target="" | ||
SET target=+foo | ||
BUILD $target | ||
|
||
dynamic-arg: | ||
LET foo="" | ||
SET foo=bar | ||
ARG baz=$foo | ||
RUN echo "hello $baz" | ||
|
||
copy-target: | ||
ARG foo | ||
RUN echo $foo > x | ||
SAVE ARTIFACT x | ||
|
||
copy-target-2: | ||
RUN echo "foobar" > x | ||
SAVE ARTIFACT x | ||
|
||
copy-target-dynamic: | ||
LET name="" | ||
SET name="+copy-target" | ||
COPY ($name/x --foo=goodbye) . | ||
RUN cat x | ||
|
||
copy-target-dynamic-2: | ||
LET name="" | ||
SET name="+copy-target-2" | ||
COPY $name/x . | ||
RUN cat x |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters