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

Cleanup & simplify more

parent f6d045d7
Pipeline #11648 failed
...@@ -7,18 +7,25 @@ make-targets: ...@@ -7,18 +7,25 @@ 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
- 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" ocaml-image.yml.in >> ocaml-images.yml; echo "ocaml-image-$v:";
done echo " extends: .ocaml-image";
echo " variables:";
echo " OCAML_VERSION: $v";
echo;
done > ocaml-images.yml
- echo "variables:" >> ocaml-images.yml
- echo " LATEST_OCAML_VERSION: $(tail -n1 versions)" >> ocaml-images.yml
artifacts: artifacts:
paths: paths:
- ocaml-images.yml - ocaml-images-list.yml
build-images: build-images:
stage: build stage: build
variables:
trigger: trigger:
include: include:
- local: ocaml-images-gen.yml
- artifact: ocaml-images.yml - artifact: ocaml-images.yml
job: make-targets job: make-targets
strategy: depend strategy: depend
......
ocaml-image-%OCAML_VERSION%:
extends: .ocaml-image
variables:
OCAML_VERSION: %OCAML_VERSION%
LATEST_OCAML_VERSION: %LATEST_OCAML_VERSION%
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