[gnome-runtime-images/alatiera/debug] ci: add debug echos



commit fbe15a809d1ddaf8376d458f1fccc8372e65e1eb
Author: Jordan Petridis <jpetridis gnome org>
Date:   Sun Apr 26 11:17:41 2020 +0300

    ci: add debug echos

 .gitlab-ci.yml | 20 +++++++++++++++-----
 1 file changed, 15 insertions(+), 5 deletions(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 82bd23f..16995d2 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -72,26 +72,36 @@ flat-manager-client:
         - |
           CONTAINER=$(buildah from ${CI_REGISTRY_IMAGE}/base)
 
+          export TAG="${CI_REGISTRY_IMAGE}/gnome:${BRANCH}"
+          echo "Building $TAG"
+
           buildah run $CONTAINER flatpak install --user --noninteractive \
                     org.gnome.Sdk//${BRANCH} org.gnome.Platform//${BRANCH}
 
-          buildah commit $CONTAINER ${CI_REGISTRY_IMAGE}/gnome:${BRANCH}
-
+          echo "Commiting $TAG"
+          buildah commit $CONTAINER $TAG
 
         # build the rust_bundle image
         - |
           CONTAINER=$(buildah from ${CI_REGISTRY_IMAGE}/gnome:${BRANCH})
 
+          export RUST_TAG="${CI_REGISTRY_IMAGE}/rust_bundle:${BRANCH}"
+          echo "Building $RUST_TAG"
+
           buildah run $CONTAINER flatpak install --user --noninteractive \
                     org.freedesktop.Sdk.Extension.rust-stable//${FD_BRANCH}
 
-          buildah commit $CONTAINER ${CI_REGISTRY_IMAGE}/rust_bundle:${BRANCH}
+          echo "Commiting $RUST_TAG"
+          buildah commit $CONTAINER $RUST_TAG
 
         # push only on master branch
         - |
           if [ $CI_COMMIT_REF_NAME == master ]; then
-              buildah push ${CI_REGISTRY_IMAGE}/gnome:${BRANCH}
-              buildah push ${CI_REGISTRY_IMAGE}/rust_bundle:${BRANCH}
+              echo "Pushing $TAG"
+              buildah push $TAG
+
+              echo "Pushing $RUST_TAG"
+              buildah push $RUST_TAG
           fi
 
 


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