-
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 for some remote targets (#3508)
Adds `BUILD`, `COPY`, `FROM` support for remote targets that use explicit SHAs or tags. --------- Co-authored-by: Alex Couture-Beil <[email protected]>
- Loading branch information
1 parent
7f43f54
commit 6c40169
Showing
4 changed files
with
95 additions
and
9 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,29 @@ | ||
VERSION 0.7 | ||
PROJECT testorg/testproj | ||
|
||
valid-copy: | ||
FROM alpine | ||
COPY github.com/earthly/earthly:tags/v0.7.21+license/LICENSE . | ||
|
||
valid-copy-sha: | ||
FROM alpine | ||
COPY github.com/earthly/earthly:6610b73131f94cbe594dba3b90665748f21a9b8d+license/LICENSE . | ||
|
||
valid-from: | ||
FROM github.com/earthly/earthly:tags/v0.7.21+license | ||
RUN echo "hello" | ||
|
||
valid-from-sha: | ||
FROM github.com/earthly/earthly:6610b73131f94cbe594dba3b90665748f21a9b8d+license | ||
RUN echo "hello" | ||
|
||
invalid-copy-branch: | ||
FROM alpine | ||
COPY github.com/earthly/earthly:main+license/LICENSE . | ||
|
||
valid-build: | ||
BUILD github.com/earthly/earthly:6610b73131f94cbe594dba3b90665748f21a9b8d+license | ||
BUILD github.com/earthly/earthly:tags/v0.7.21+license | ||
|
||
invalid-build: | ||
BUILD github.com/earthly/earthly:main+license |