]> Frank Brehm's Git Trees - pixelpark/create-vmware-tpl.git/commitdiff
Defining Gitlab environments
authorFrank Brehm <frank.brehm@pixelpark.com>
Mon, 19 Aug 2024 10:20:57 +0000 (12:20 +0200)
committerFrank Brehm <frank.brehm@pixelpark.com>
Mon, 19 Aug 2024 10:20:57 +0000 (12:20 +0200)
.gitlab-ci.yml

index 22c9388f6c019ca796f8d2a8e411353afd1c9353..7063fd71f583da3be5a65ccb7edb9bf36217ae01 100644 (file)
@@ -179,6 +179,8 @@ Test source:
   extends:
     - .template_job
   stage: test
+  environment:
+    name: test
   variables:
     OS_ID: centos-stream-8
   script:
@@ -200,6 +202,8 @@ Linter:
   extends:
     - .template_job
   stage: linter
+  environment:
+    name: test
   needs:
     - 'Test source'
   script:
@@ -321,13 +325,13 @@ Linter:
           bin/create-vmware-template --verbose --color yes;
       fi
 
-Create RHEL9 template:
+Create RHEL9 live template:
   extends:
     - .template_job
     - .build-job
   stage: deploy
   environment:
-    name: deploy/$CI_COMMIT_BRANCH
+    name: production
   needs:
     - 'Linter'
   variables:
@@ -337,12 +341,31 @@ Create RHEL9 template:
     VM_IS_RHEL: 'True'
     VM_KS_TEMPLATE: 'el9-standard.ks'
     COBBLER_DISTRO: 'RHEL-9.2-x86_64'
+  if:
+    - master
+    - main
+  only:
+    - schedules
+
+Create RHEL9 test template:
+  extends:
+    - .template_job
+    - .build-job
+  stage: deploy
   environment:
-    name: ${SYSTEM_STATUS}
+    name: staging
+  needs:
+    - 'Linter'
+  variables:
+    OS_ID: rhel-9
+    VM_OS_VERSION_PROD: 'rhel9_64Guest'
+    VM_OS_VERSION_TEST: 'rhel8_64Guest'
+    VM_IS_RHEL: 'True'
+    VM_KS_TEMPLATE: 'el9-standard.ks'
+    COBBLER_DISTRO: 'RHEL-9.2-x86_64'
+  if:
+    - test
   except:
-    - /^dev-.*$/
-    - /^dev\/.*$/
-    - /^hf.*$/
     - tags
   only:
     - schedules