-
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.
Auto-skip: support FROM DOCKERFILE & remotes for WITH DOCKER --load (…
…#3522) Auto-skip support for targets that contain: ``` FROM DOCKERFILE -f /dist/Dockerfile /dist ```` ``` FROM DOCKERFILE github.com/earthly/test-remote/from-dockerfile:40080b4fc1fd4881f5123f03ba030055efbbbafe+create-dockerfile/ ``` ``` FROM DOCKERFILE +create-dockerfile/ ``` ``` WITH DOCKER --load foo=github.com/earthly/earthly:6610b73131f94cbe594dba3b90665748f21a9b8d+license ```
- Loading branch information
1 parent
33d3fd5
commit f6afedc
Showing
6 changed files
with
118 additions
and
5 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,4 @@ | ||
FROM alpine:3.18 | ||
|
||
RUN ls /tmp | ||
ENTRYPOINT ["echo", "hello"] |
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,29 @@ | ||
VERSION 0.7 | ||
|
||
PROJECT earthly-technologies/core | ||
|
||
FROM alpine | ||
|
||
local: | ||
FROM DOCKERFILE -f /dist/Dockerfile /dist | ||
RUN echo "hi" | ||
|
||
local-target: | ||
FROM DOCKERFILE +create-dockerfile/ | ||
RUN echo "hi" | ||
|
||
remote: | ||
FROM DOCKERFILE github.com/earthly/test-remote/from-dockerfile:40080b4fc1fd4881f5123f03ba030055efbbbafe+create-dockerfile/ | ||
RUN echo "hi" | ||
|
||
create-dockerfile: | ||
FROM alpine:3.18 | ||
RUN mkdir dist | ||
RUN echo " | ||
FROM alpine:3.18 | ||
ARG my_arg=default | ||
RUN echo \${my_arg} | ||
RUN echo \${my_arg} >/arg-value | ||
" > dist/Dockerfile | ||
RUN cat dist/Dockerfile | ||
SAVE ARTIFACT dist/* |