[damned-lies] feat: export container image as artifact



commit 82b9fb9075bf48b4d260c3e02d26a3eede2af89f
Author: Guillaume Bernard <associations guillaume-bernard fr>
Date:   Mon May 9 15:06:23 2022 +0200

    feat: export container image as artifact

 .gitlab-ci.yml | 19 ++++++++-----------
 1 file changed, 8 insertions(+), 11 deletions(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 9d250c89..c67b5c90 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -60,14 +60,16 @@ variables:
     - ./containers/production/render_configuration_templates.sh "${KIND_OF_DEPLOYMENT}"
     - ./containers/production/build_buildah_deployment.sh "${KIND_OF_DEPLOYMENT}"
     - buildah tag "${BUILT_IMAGE_NAME}-${KIND_OF_DEPLOYMENT}" "${IMAGE_TAG}-${KIND_OF_DEPLOYMENT}"
-    - buildah push "${IMAGE_TAG}-${KIND_OF_DEPLOYMENT}"
+    - buildah push "${IMAGE_TAG}-${KIND_OF_DEPLOYMENT}" 
"oci-archive:damned-lies-production_${CI_COMMIT_REF_NAME}.tar"
   after_script:
     - mv containers/production/${KIND_OF_DEPLOYMENT} configuration
   artifacts:
+    name: "${CI_JOB_NAME}-${CI_COMMIT_REF_NAME}-${CI_COMMIT_SHA}"
     paths:
+      - damned-lies-production_$CI_COMMIT_REF_NAME.tar
       - configuration
-    expire_in: 1 week
-    name: "${CI_JOB_NAME}-${CI_COMMIT_REF_NAME}-${CI_COMMIT_SHA}"
+    expire_in: 3 hours
+    when: on_success
 
 
 ##############################################################################
@@ -241,12 +243,7 @@ code-string-changes:
       - "${TRANSLATION_DIFF_PO_FILENAME}"
     when: on_failure
 
+#############################################################################
+###################               Deploy                  ###################
+#############################################################################
 
-##############################################################################
-###################              Staging                   ###################
-##############################################################################
-
-
-##############################################################################
-###################             Production                 ###################
-##############################################################################


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