[gnome-runtime-images] Add rust sdk bundles.



commit 099fea106f91b92bded5a4ae40e36c7b3e33bd51
Author: Jordan Petridis <jordanpetridis protonmail com>
Date:   Mon Jun 4 14:35:04 2018 +0300

    Add rust sdk bundles.
    
    By "bundle" I mean a docker image of $RUNTIME that also includes
    $SDK_EXTENSION.
    
    So in this case it's about gnome:master and gnome:3.28 runtimes
    bundled with the rust-sdk-extension.

 .gitlab-ci.yml                   | 25 +++++++++++++++++++++++++
 sdk-bundles/rust-bundle.template |  3 +++
 2 files changed, 28 insertions(+)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 482812c..0b6b87d 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -10,6 +10,7 @@ variables:
 stages:
     - base
     - runtimes
+    - rust_bundle
 
 # Expects $IMAGE which should be the name+tag of the registry image.
 # Expects $OCI_YML variable which should be the path to the dockerfile
@@ -62,4 +63,28 @@ gnome:3.28:
         - export NAMESPACE="$(echo "${CI_PROJECT_NAMESPACE}" | tr A-Z a-z)"
         - export IMAGE="${CI_REGISTRY}/${NAMESPACE}/${CI_PROJECT_NAME}/gnome:3.28"
         - export OCI_YML=gnome-3-28/Dockerfile
+    <<: *build
+
+rust:master:
+    stage: rust_bundle
+    before_script:
+        # https://stackoverflow.com/questions/2264428/converting-string-to-lower-case-in-bash#2264537
+        - export NAMESPACE="$(echo "${CI_PROJECT_NAMESPACE}" | tr A-Z a-z)"
+        - export IMAGE="${CI_REGISTRY}/${NAMESPACE}/${CI_PROJECT_NAME}/rust_bundle:master"
+        - export OCI_YML=-sdk-bundles/rust.yml
+
+        - export BASE_IMAGE="registry.gitlab.gnome.org/gnome/gnome-runtime-images/gnome:master"
+        - sed -e "s|@BASE_IMAGE@|$BASE_IMAGE|" sdk-bundles/rust-bundle.template > sdk-bundles/rust.yml
+    <<: *build
+
+rust:3.28:
+    stage: rust_bundle
+    before_script:
+        # https://stackoverflow.com/questions/2264428/converting-string-to-lower-case-in-bash#2264537
+        - export NAMESPACE="$(echo "${CI_PROJECT_NAMESPACE}" | tr A-Z a-z)"
+        - export IMAGE="${CI_REGISTRY}/${NAMESPACE}/${CI_PROJECT_NAME}/rust_bundle:3.28"
+        - export OCI_YML=-sdk-bundles/rust.yml
+
+        - export BASE_IMAGE="registry.gitlab.gnome.org/gnome/gnome-runtime-images/gnome:3.28"
+        - sed -e "s|@BASE_IMAGE@|$BASE_IMAGE|" sdk-bundles/rust-bundle.template > sdk-bundles/rust.yml
     <<: *build
\ No newline at end of file
diff --git a/sdk-bundles/rust-bundle.template b/sdk-bundles/rust-bundle.template
new file mode 100644
index 0000000..2e2d6e4
--- /dev/null
+++ b/sdk-bundles/rust-bundle.template
@@ -0,0 +1,3 @@
+FROM @BASE_IMAGE@
+
+RUN flatpak install flathub org.freedesktop.Sdk.Extension.rust-stable
\ No newline at end of file


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]