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:
| jq -r 'map(.tag_name | split(".") | {"maj":.[0:2], "pat":.}) | group_by(.maj) | .[] | max | .pat | join(".")'
| tail -n +3
> 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
sed "s/%OCAML_VERSION%/$v/g; s/%LATEST_OCAML_VERSION%/$(tail -n1 versions)/g"
ocaml-image.yml.in
>> ocaml-images.yml;
sed "s/%OCAML_VERSION%/$v/g" ocaml-image.yml.in >> ocaml-images.yml;
done
artifacts:
paths:
......
......@@ -3,6 +3,8 @@
image:
name: gcr.io/kaniko-project/executor:debug
entrypoint: [""]
variables:
LATEST_OCAML_VERSION: %LATEST_OCAML_VERSION%
script:
- |
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