From dd93e41a9b71008546340eebbe2f8c0d8df30c8a Mon Sep 17 00:00:00 2001 From: Frank Brehm Date: Mon, 19 Aug 2024 12:08:55 +0200 Subject: [PATCH] Define a deploy environment --- .gitlab-ci.yml | 124 ++----------------------------------------------- 1 file changed, 4 insertions(+), 120 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 23edf05..22c9388 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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 -- 2.39.5