[gimp-web/oscp] Embed build template to remove "changes" rules



commit 7cbbcd7a7af5256feec884085a26f006c2b3e648
Author: Bartłomiej Piotrowski <bpiotrowski gnome org>
Date:   Tue May 24 15:12:41 2022 +0200

    Embed build template to remove "changes" rules
    
    We want all builds to be possible to trigger, regardless of what has
    been actually changed in the latest commit.

 .gitlab-ci.yml | 33 ++++++++++++++++++++++++---------
 1 file changed, 24 insertions(+), 9 deletions(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index acb2d555..ea9c91d0 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,19 +1,34 @@
-include:
-  - project: 'Infrastructure/openshift-images/ci-templates'
-    file: '/kaniko.yml'
+.build:
+  stage: build
+  interruptible: true
+  image:
+    name: gcr.io/kaniko-project/executor:debug
+    entrypoint: [""]
+  script:
+    - export container=docker
+    - mkdir -p /kaniko/.docker
+    - >-
+      if [ "$CI_COMMIT_REF_PROTECTED" == "true" ]; then
+        echo "{\"auths\":{\"${OCI_REGISTRY}\":{\"auth\":\"$(printf "%s:%s" "${OCI_REGISTRY_USER}" 
"${OCI_REGISTRY_PASSWORD}" | base64 | tr -d '\n')\"}}}" > /kaniko/.docker/config.json
+        export KANIKO_DESTINATION="--destination 
${OCI_REGISTRY}/gnome_infrastructure/gimp-web:${OCI_TAG:-latest}"
+      else
+        export KANIKO_DESTINATION="--no-push"
+      fi
+    - >-
+      /kaniko/executor
+      --context "${CI_JOB_NAME}"
+      --dockerfile "${CI_JOB_NAME}/Dockerfile"
+      $KANIKO_DESTINATION
+  when: manual
 
 developer.gimp.org:
   extends:
-    - .kaniko-monorepo
+    - .build
   variables:
-    CI_CUSTOM_IMAGE_NAME: gimp-web
     OCI_TAG: developer
-  when: manual
 
 static.gimp.org:
   extends:
-    - .kaniko-monorepo
+    - .build
   variables:
-    CI_CUSTOM_IMAGE_NAME: gimp-web
     OCI_TAG: static
-  when: manual


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