File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -28,9 +28,23 @@ sources:
28
28
\d\.\d\.\d$
29
29
30
30
conditions :
31
+ checkForAsdf :
32
+ kind : shell
33
+ disablesourceinput : true
34
+ dependson :
35
+ - " source#rubyDockerImageLatestVersion"
36
+ spec :
37
+ environments :
38
+ - name : PATH
39
+ - name : HOME
40
+ # Assuming ASDF is installed with the ruby package
41
+ command : bash -x -c "asdf plugin-update ruby && asdf list-all ruby | grep '^{{ source "rubyDockerImageLatestVersion" }}$' || { echo 'Ruby version {{ source "rubyDockerImageLatestVersion" }} not available yet on ASDF.' && exit 1; }"
42
+
31
43
checkForChocolateyPackage :
32
44
kind : shell
33
45
disablesourceinput : true # Do not pass source as argument to the command line
46
+ dependson :
47
+ - " source#rubyDockerImageLatestVersion"
34
48
spec :
35
49
# The final ".1" is added to ruby version by Chocolatey
36
50
command : curl --silent --show-error --location --fail --output /dev/null https://community.chocolatey.org/packages/ruby/{{ source "rubyDockerImageLatestVersion" }}.1
You can’t perform that action at this time.
0 commit comments