Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
OCamlPro
ocaml-docker-images
Commits
ac9ffad8
Commit
ac9ffad8
authored
Dec 03, 2020
by
Louis Gesbert
Browse files
Cleanup & simplify more
parent
f6d045d7
Pipeline
#11648
failed
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
10 deletions
+11
-10
.gitlab-ci.yml
.gitlab-ci.yml
+11
-4
ocaml-image.yml.in
ocaml-image.yml.in
+0
-6
ocaml-images-gen.yml
ocaml-images-gen.yml
+0
-0
No files found.
.gitlab-ci.yml
View file @
ac9ffad8
...
...
@@ -7,18 +7,25 @@ make-targets:
| jq -r 'map(.tag_name | split(".") | {"maj":.[0:2], "pat":.}) | group_by(.maj) | .[] | max | .pat | join(".")'
| tail -n +3
> versions
-
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" ocaml-image.yml.in >> ocaml-images.yml;
done
echo "ocaml-image-$v:";
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
:
paths
:
-
ocaml-images.yml
-
ocaml-images
-list
.yml
build-images
:
stage
:
build
variables
:
trigger
:
include
:
-
local
:
ocaml-images-gen.yml
-
artifact
:
ocaml-images.yml
job
:
make-targets
strategy
:
depend
...
...
ocaml-image.yml.in
deleted
100644 → 0
View file @
f6d045d7
ocaml-image-%OCAML_VERSION%:
extends: .ocaml-image
variables:
OCAML_VERSION: %OCAML_VERSION%
LATEST_OCAML_VERSION: %LATEST_OCAML_VERSION%
ocaml-image.yml
.pre
→
ocaml-image
s-gen
.yml
View file @
ac9ffad8
File moved
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment