Adam Štrauch
e8fbeeba3c
Some checks failed
continuous-integration/drone/push Build is failing
* Debian Bullseye * New tech version: Node.js 14.18.1 Node.js 15.14.0 Node.js 16.13.0 Node.js 17.1.0 Python 3.9.7 Python 3.10.0 PHP 7.4.23 PHP 7.4.26 PHP 8.0.13 Ruby 2.7.4 Ruby 3.0.2 Deno 1.16.2 Requested ed25519 support included in dropbear.
45 lines
1000 B
Fish
Executable File
45 lines
1000 B
Fish
Executable File
#!/usr/bin/fish
|
|
|
|
set TECHS_FILE /tmp/techs.txt
|
|
|
|
echo -n > $TECHS_FILE
|
|
|
|
for line in (cat Dockerfile | grep "RUN build_")
|
|
set VERSION (echo $line | cut -d " " -f 3)
|
|
set TECH_SCRIPT (echo $line | cut -d " " -f 2)
|
|
|
|
switch $TECH_SCRIPT
|
|
case "build_php.sh"
|
|
set TECH php
|
|
set TECH_VERBOSE PHP
|
|
case "build_php8.sh"
|
|
set TECH php
|
|
set TECH_VERBOSE PHP
|
|
case "build_python.sh"
|
|
set TECH python
|
|
set TECH_VERBOSE Python
|
|
case "build_node.sh"
|
|
set TECH node
|
|
set TECH_VERBOSE Node
|
|
case "build_ruby.sh"
|
|
set TECH ruby
|
|
set TECH_VERBOSE Ruby
|
|
case "build_deno.sh"
|
|
set TECH deno
|
|
set TECH_VERBOSE Deno
|
|
case '*'
|
|
set TECH unknown
|
|
end
|
|
|
|
echo " \"$TECH-$VERSION\" \" $TECH_VERBOSE $VERSION\" \\" >> $TECHS_FILE
|
|
end
|
|
|
|
cat rosti.tmpl.sh | while read -l line
|
|
if [ "$line" = "{{TECHS}}" ]
|
|
cat $TECHS_FILE
|
|
else
|
|
echo $line
|
|
end
|
|
|
|
end
|