Skip to content
Snippets Groups Projects

feature/#1457 *-cloud-entities share common artifacts first take common...

Merged Jiří Ježek requested to merge feat/pipeline_cloud_entities_and_ci into master
2 files
+ 30
1
Compare changes
  • Side-by-side
  • Inline
Files
2
# cloud-entities CI pipeline template
# In order to reuse this pipeline you have to:
# * override variables/ENVIRONMENT_NAME
# * override variables/ENVIRONMENT_NAME,OSTACK_TF_BASEDIR,GRAFANA_TF_BASEDIR
# * define CI protected variable COMMON_CLOUD_ENTITIES_PULL_TOKEN (token for pulling this repo)
# * define CI protected file variable OSTACK_ADMIN_RC_FILE (openstack credentials in openrc form)
@@ -16,14 +16,25 @@ image: registry.gitlab.ics.muni.cz:443/cloud/g2/common-cloud-entities:1.0.2
variables:
TF_WORKDIR: "terraform-workload"
OSTACK_TF_BASEDIR: "" # pls override
GRAFANA_TF_BASEDIR: "" # pls override
ENVIRONMENT_NAME: "" # pls override
before_script:
- git clone https://gitlab-ci-token:${COMMON_CLOUD_ENTITIES_PULL_TOKEN}@gitlab.ics.muni.cz/cloud/g2/common-cloud-entities.git
- find ci/ #dat do jednoho .sh
- mv -f ci ci.local
- cp -r common-cloud-entities/ci ci
- cp -fr ci.local/* ci/
- find ci/
- ls -la
- ls ci/ -la
- export REPO_ROOT_DIR=$(pwd)
- export TF_VAR_shell_ostack_mapping_script_dir=$(pwd)/ci/terraform/providers/shell/ostack_mapping
- dpkg -l | sort > pkgs.apt.log
- python3 -m pip list > pkgs.pip.log
- if [ -s "${OSTACK_ADMIN_RC_FILE}" ]; then source ${OSTACK_ADMIN_RC_FILE}; openstack version show -fcsv | grep identity; fi
- nop
after_script:
- rm -rf terraform-workload/.terraform/providers