-
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: further support for shell-out (#3496)
Allows targets that use shell-out features to be auto-skipped unless the target name is to be dynamically resolved using the result of a shell-out command. --------- Co-authored-by: Alex Couture-Beil <[email protected]>
- Loading branch information
1 parent
42a37be
commit 2e58c8c
Showing
3 changed files
with
64 additions
and
11 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
VERSION 0.7 | ||
|
||
PROJECT testorg/testproj | ||
|
||
FROM alpine:3.18 | ||
|
||
shell-out: | ||
ARG result=$(echo "hi") | ||
RUN echo $result | ||
|
||
foo: | ||
RUN echo "hello from foo" | ||
|
||
shell-out-target: | ||
ARG target=$(echo "+foo") | ||
BUILD $target | ||
|
||
shell-out-target-2: | ||
ARG name="+foo" | ||
ARG target=$(echo $name) | ||
BUILD $target | ||
|
||
shell-out-copy: | ||
ARG file=$(echo "my-file") | ||
COPY $file . |