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
b2085791
Commit
b2085791
authored
Jan 28, 2021
by
Louis Gesbert
Browse files
Automatically use latest opam release
parent
e9adfb0b
Pipeline
#12410
failed with stages
in 17 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
.gitlab-ci.yml
.gitlab-ci.yml
+6
-1
ocaml-images-gen.yml
ocaml-images-gen.yml
+1
-0
No files found.
.gitlab-ci.yml
View file @
b2085791
...
...
@@ -7,6 +7,10 @@ make-targets:
| jq -r 'map(.tag_name | split(".") | {"maj":.[0:2], "pat":.}) | group_by(.maj) | .[] | max | .pat | join(".")'
| tail -n +3
> versions
-
curl https://api.github.com/repos/ocaml/opam/releases
| jq -r 'map(.tag_name | split(".") | {"maj":.[0:2], "pat":.}) | group_by(.maj) | .[] | max | .pat | join(".")'
| tail -n
1
>
opam-version
- |
{ for v in $(cat versions); do
echo "ocaml-image-$v:";
...
...
@@ -15,8 +19,9 @@ make-targets:
echo " OCAML_VERSION: $v";
echo;
done;
echo "variables:"
echo "variables:"
;
echo " LATEST_OCAML_VERSION: $(tail -n1 versions)";
echo " OPAM_VERSION: $(cat opam-version)";
} > ocaml-images.yml
artifacts
:
paths
:
...
...
ocaml-images-gen.yml
View file @
b2085791
...
...
@@ -21,6 +21,7 @@
-
/kaniko/executor --cache=true
--context=$CI_PROJECT_DIR
--dockerfile=$CI_PROJECT_DIR/Dockerfile
--build-arg=OPAM_VERSION=$OPAM_VERSION
--build-arg=OCAML_VERSION=$OCAML_VERSION
--build-arg=LAST_REPO_UPDATE=$(date +%s)
--destination=$CI_REGISTRY_IMAGE:${OCAML_VERSION}
...
...
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