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
f6d045d7
Commit
f6d045d7
authored
Dec 03, 2020
by
Louis Gesbert
Browse files
Simplify
parent
64c3b34b
Pipeline
#11646
failed with stages
in 17 seconds
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
.gitlab-ci.yml
.gitlab-ci.yml
+2
-4
ocaml-image.yml.pre
ocaml-image.yml.pre
+2
-0
No files found.
.gitlab-ci.yml
View file @
f6d045d7
...
@@ -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
:
...
...
ocaml-image.yml.pre
View file @
f6d045d7
...
@@ -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 "{
...
...
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