Commit f6d045d7 authored by Louis Gesbert's avatar Louis Gesbert
Browse files

Simplify

parent 64c3b34b
Pipeline #11646 failed with stages
in 17 seconds
...@@ -7,11 +7,9 @@ make-targets: ...@@ -7,11 +7,9 @@ make-targets:
| jq -r 'map(.tag_name | split(".") | {"maj":.[0:2], "pat":.}) | group_by(.maj) | .[] | max | .pat | join(".")' | jq -r 'map(.tag_name | split(".") | {"maj":.[0:2], "pat":.}) | group_by(.maj) | .[] | max | .pat | join(".")'
| tail -n +3 | tail -n +3
> versions > versions
- cat ocaml-image.yml.pre > ocaml-images.yml - sed "s/%LATEST_OCAML_VERSION%/$(tail -n1 versions)/g" ocaml-image.yml.pre > ocaml-images.yml
- for v in $(cat versions); do - for v in $(cat versions); do
sed "s/%OCAML_VERSION%/$v/g; s/%LATEST_OCAML_VERSION%/$(tail -n1 versions)/g" sed "s/%OCAML_VERSION%/$v/g" ocaml-image.yml.in >> ocaml-images.yml;
ocaml-image.yml.in
>> ocaml-images.yml;
done done
artifacts: artifacts:
paths: paths:
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
image: image:
name: gcr.io/kaniko-project/executor:debug name: gcr.io/kaniko-project/executor:debug
entrypoint: [""] entrypoint: [""]
variables:
LATEST_OCAML_VERSION: %LATEST_OCAML_VERSION%
script: script:
- | - |
echo "{ echo "{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment