[gnome-runtime-images/alatiera/fb: 2/2] foo




commit 3c712f5086b8f5b858a8082376612ef0981afb71
Author: Jordan Petridis <jordan centricular com>
Date:   Thu Jul 7 22:45:39 2022 +0300

    foo

 .gitlab-ci.yml | 32 +++++++++++++-------------------
 1 file changed, 13 insertions(+), 19 deletions(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 1d208ad..1b3b4e5 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -27,15 +27,11 @@ default:
         - buildah bud -f ${DOCKERFILE} -t ${DOCKERIMAGE} .
         # push only on master branch
         - |
-          if [ $CI_COMMIT_REF_NAME == master ]; then
-              buildah push ${DOCKERIMAGE}
+          buildah push ${DOCKERIMAGE}
 
-              # Tag `x86_64` also without the ARCH to not break the old path
-              if [ $ARCH == "x86_64" ]; then
-                  buildah tag $DOCKERIMAGE $DOCKERIMAGE_OLD
-                  buildah push $DOCKERIMAGE_OLD
-              fi
-          fi
+          # Tag `x86_64` also without the ARCH to not break the old path
+          buildah tag $DOCKERIMAGE $DOCKERIMAGE_OLD
+          buildah push $DOCKERIMAGE_OLD
     after_script:
         # don't try to use systemd/journald
         - |
@@ -108,17 +104,15 @@ flat-manager-client:aarch64:
 
         # push only on master branch
         - |
-          if [ $CI_COMMIT_REF_NAME == master ]; then
-              echo "Pushing $TAG"
-              buildah push $TAG
-
-              # This is for backwards compatibility
-              if [ $ARCH == "x86_64" ]; then
-                  # Tag `x86_64` also without the ARCH to not break the old path
-                  export TAG_OLD="${CI_REGISTRY_IMAGE}/gnome:${BRANCH}"
-                  buildah tag $TAG $TAG_OLD
-                  buildah push $TAG_OLD
-              fi
+          echo "Pushing $TAG"
+          buildah push $TAG
+
+          # This is for backwards compatibility
+          if [ $ARCH == "x86_64" ]; then
+              # Tag `x86_64` also without the ARCH to not break the old path
+              export TAG_OLD="${CI_REGISTRY_IMAGE}/gnome:${BRANCH}"
+              buildah tag $TAG $TAG_OLD
+              buildah push $TAG_OLD
           fi
 
 .vars_aarch64:


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