stages:
- test
- linter
- - build-el9
- # - build-el8
- # - build-el7
+ - deploy
variables:
PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
extends:
- .template_job
- .build-job
- stage: build-el9
+ stage: deploy
+ environment:
+ name: deploy/$CI_COMMIT_BRANCH
needs:
- 'Linter'
variables:
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