]> Frank Brehm's Git Trees - pixelpark/create-vmware-tpl.git/commitdiff
Define a deploy environment
authorFrank Brehm <frank.brehm@pixelpark.com>
Mon, 19 Aug 2024 10:08:55 +0000 (12:08 +0200)
committerFrank Brehm <frank.brehm@pixelpark.com>
Mon, 19 Aug 2024 10:08:55 +0000 (12:08 +0200)
.gitlab-ci.yml

index 23edf056c29083a10308034e72dfe523fc264537..22c9388f6c019ca796f8d2a8e411353afd1c9353 100644 (file)
@@ -7,9 +7,7 @@
 stages:
   - test
   - linter
-  - build-el9
-  # - build-el8
-  # - build-el7
+  - deploy
 
 variables:
   PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
@@ -327,7 +325,9 @@ Create RHEL9 template:
   extends:
     - .template_job
     - .build-job
-  stage: build-el9
+  stage: deploy
+  environment:
+    name: deploy/$CI_COMMIT_BRANCH
   needs:
     - 'Linter'
   variables:
@@ -347,120 +347,4 @@ Create RHEL9 template:
   only:
     - schedules
 
-# Create Centos8 template:
-#   extends:
-#     - .template_job
-#     - .build-job
-#   stage: build-el8
-#   needs:
-#     - 'Create RHEL9 template'
-#   variables:
-#     OS_ID: centos-stream-8
-#     VM_OS_VERSION: 'centos8_64Guest'
-#     VM_IS_RHEL: 'False'
-#     VM_KS_TEMPLATE: 'el8-standard.ks'
-#     COBBLER_DISTRO: 'CentOS-8-Stream-x86_64'
-#   environment:
-#     name: ${SYSTEM_STATUS}
-#   except:
-#     - /^dev-.*$/
-#     - /^dev\/.*$/
-#     - /^hf.*$/
-#     - tags
-#   only:
-#     - schedules
-
-# Create AlmaLinux8 template:
-#   extends:
-#     - .template_job
-#     - .build-job
-#   stage: build-el8
-#   needs:
-#     - 'Create Centos8 template'
-#   variables:
-#     OS_ID: almalinux-8
-#     VM_OS_VERSION: 'centos8_64Guest'
-#     VM_IS_RHEL: 'False'
-#     VM_KS_TEMPLATE: 'el8-standard.ks'
-#     COBBLER_DISTRO: 'CentOS-8-Stream-x86_64'
-#   environment:
-#     name: ${SYSTEM_STATUS}
-#   except:
-#     - /^dev-.*$/
-#     - /^dev\/.*$/
-#     - /^hf.*$/
-#     - tags
-#   only:
-#     - schedules
-
-# Create Rocky8 template:
-#   extends:
-#     - .template_job
-#     - .build-job
-#   stage: build-el8
-#   needs:
-#     - 'Create AlmaLinux8 template'
-#   variables:
-#     OS_ID: rocky-8
-#     VM_OS_VERSION: 'centos8_64Guest'
-#     VM_IS_RHEL: 'False'
-#     VM_KS_TEMPLATE: 'el8-standard.ks'
-#     COBBLER_DISTRO: 'CentOS-8-Stream-x86_64'
-#   environment:
-#     name: ${SYSTEM_STATUS}
-#   except:
-#     - /^dev-.*$/
-#     - /^dev\/.*$/
-#     - /^hf.*$/
-#     - tags
-#   only:
-#     - schedules
-
-# Create Centos7 template:
-#   extends:
-#     - .template_job
-#     - .build-job
-#   stage: build-el7
-#   needs:
-# #     - 'Create Rocky8 template'
-#     - 'Create Centos8 template'
-#   variables:
-#     OS_ID: centos-7
-#     VM_OS_VERSION: 'centos7_64Guest'
-#     VM_IS_RHEL: 'False'
-#     VM_KS_TEMPLATE: 'el7-standard.ks'
-#     COBBLER_DISTRO: 'CentOS-7.9-x86_64'
-#   environment:
-#     name: ${SYSTEM_STATUS}
-#   except:
-#     - /^dev-.*$/
-#     - /^dev\/.*$/
-#     - /^hf.*$/
-#     - tags
-#   only:
-#     - schedules
-
-# Create OracleLinux7 template:
-#   extends:
-#     - .template_job
-#     - .build-job
-#   stage: build-el7
-#   needs:
-#     - 'Create Centos7 template'
-#   variables:
-#     OS_ID: oel-7
-#     VM_OS_VERSION: 'oracleLinux7_64Guest'
-#     VM_IS_RHEL: 'False'
-#     VM_KS_TEMPLATE: 'el7-standard.ks'
-#     COBBLER_DISTRO: 'Oracle-Linux-7.8-x86_64'
-#   environment:
-#     name: ${SYSTEM_STATUS}
-#   except:
-#     - /^dev-.*$/
-#     - /^dev\/.*$/
-#     - /^hf.*$/
-#     - tags
-#   only:
-#     - schedules
-
 # vim: et list