cici-tools 0.16.1__tar.gz → 0.17.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {cici_tools-0.16.1/cici_tools.egg-info → cici_tools-0.17.1}/PKG-INFO +1 -1
- {cici_tools-0.16.1 → cici_tools-0.17.1}/cici/_version.py +3 -3
- {cici_tools-0.16.1 → cici_tools-0.17.1}/cici/cli/bundle.py +1 -0
- {cici_tools-0.16.1 → cici_tools-0.17.1}/cici/config/project/serializers.py +12 -6
- {cici_tools-0.16.1 → cici_tools-0.17.1}/cici/providers/gitlab/serializers.py +23 -6
- {cici_tools-0.16.1 → cici_tools-0.17.1/cici_tools.egg-info}/PKG-INFO +1 -1
- {cici_tools-0.16.1 → cici_tools-0.17.1}/cici_tools.egg-info/SOURCES.txt +2 -0
- {cici_tools-0.16.1 → cici_tools-0.17.1}/requirements.txt +1 -3
- {cici_tools-0.16.1 → cici_tools-0.17.1}/tests/fixtures/gitlab/job-variables/opentofu-development-apply.yml +2 -0
- {cici_tools-0.16.1 → cici_tools-0.17.1}/tests/fixtures/gitlab/job-variables/opentofu-development-auto-apply.yml +2 -0
- {cici_tools-0.16.1/tests/fixtures/gitlab/targets-dir → cici_tools-0.17.1/tests/fixtures/gitlab/job-variables}/opentofu-development-destroy.yml +2 -0
- {cici_tools-0.16.1/tests/fixtures/gitlab/targets-dir → cici_tools-0.17.1/tests/fixtures/gitlab/job-variables}/opentofu-development-plan.yml +2 -0
- {cici_tools-0.16.1 → cici_tools-0.17.1}/tests/fixtures/gitlab/job-variables/opentofu-development-trivy.yml +2 -0
- {cici_tools-0.16.1/tests/fixtures/gitlab/targets-dir → cici_tools-0.17.1/tests/fixtures/gitlab/job-variables}/opentofu-development-validate.yml +2 -0
- {cici_tools-0.16.1/tests/fixtures/gitlab/targets-dir → cici_tools-0.17.1/tests/fixtures/gitlab/job-variables}/opentofu-production-apply.yml +2 -0
- {cici_tools-0.16.1/tests/fixtures/gitlab/targets-dir → cici_tools-0.17.1/tests/fixtures/gitlab/job-variables}/opentofu-production-auto-apply.yml +2 -0
- {cici_tools-0.16.1 → cici_tools-0.17.1}/tests/fixtures/gitlab/job-variables/opentofu-production-destroy.yml +2 -0
- {cici_tools-0.16.1 → cici_tools-0.17.1}/tests/fixtures/gitlab/job-variables/opentofu-production-plan.yml +2 -0
- {cici_tools-0.16.1/tests/fixtures/gitlab/targets-dir → cici_tools-0.17.1/tests/fixtures/gitlab/job-variables}/opentofu-production-trivy.yml +2 -0
- {cici_tools-0.16.1/tests/fixtures/gitlab/targets-dir → cici_tools-0.17.1/tests/fixtures/gitlab/job-variables}/opentofu-production-validate.yml +2 -0
- {cici_tools-0.16.1 → cici_tools-0.17.1}/tests/fixtures/gitlab/job-variables/opentofu-staging-apply.yml +2 -0
- {cici_tools-0.16.1/tests/fixtures/gitlab/targets-dir → cici_tools-0.17.1/tests/fixtures/gitlab/job-variables}/opentofu-staging-auto-apply.yml +2 -0
- {cici_tools-0.16.1/tests/fixtures/gitlab/targets-dir → cici_tools-0.17.1/tests/fixtures/gitlab/job-variables}/opentofu-staging-destroy.yml +2 -0
- {cici_tools-0.16.1/tests/fixtures/gitlab/targets-dir → cici_tools-0.17.1/tests/fixtures/gitlab/job-variables}/opentofu-staging-plan.yml +2 -0
- {cici_tools-0.16.1/tests/fixtures/gitlab/targets-dir → cici_tools-0.17.1/tests/fixtures/gitlab/job-variables}/opentofu-staging-trivy.yml +2 -0
- {cici_tools-0.16.1 → cici_tools-0.17.1}/tests/fixtures/gitlab/job-variables/opentofu-staging-validate.yml +2 -0
- {cici_tools-0.16.1/tests/fixtures/gitlab/targets-dir → cici_tools-0.17.1/tests/fixtures/gitlab/job-variables}/opentofu-validate.yml +1 -0
- {cici_tools-0.16.1 → cici_tools-0.17.1}/tests/fixtures/gitlab/targets-dir/opentofu-development-apply.yml +2 -0
- {cici_tools-0.16.1 → cici_tools-0.17.1}/tests/fixtures/gitlab/targets-dir/opentofu-development-auto-apply.yml +2 -0
- {cici_tools-0.16.1/tests/fixtures/gitlab/job-variables → cici_tools-0.17.1/tests/fixtures/gitlab/targets-dir}/opentofu-development-destroy.yml +2 -0
- {cici_tools-0.16.1/tests/fixtures/gitlab/job-variables → cici_tools-0.17.1/tests/fixtures/gitlab/targets-dir}/opentofu-development-plan.yml +2 -0
- {cici_tools-0.16.1 → cici_tools-0.17.1}/tests/fixtures/gitlab/targets-dir/opentofu-development-trivy.yml +2 -0
- {cici_tools-0.16.1/tests/fixtures/gitlab/job-variables → cici_tools-0.17.1/tests/fixtures/gitlab/targets-dir}/opentofu-development-validate.yml +2 -0
- {cici_tools-0.16.1/tests/fixtures/gitlab/job-variables → cici_tools-0.17.1/tests/fixtures/gitlab/targets-dir}/opentofu-production-apply.yml +2 -0
- {cici_tools-0.16.1/tests/fixtures/gitlab/job-variables → cici_tools-0.17.1/tests/fixtures/gitlab/targets-dir}/opentofu-production-auto-apply.yml +2 -0
- {cici_tools-0.16.1 → cici_tools-0.17.1}/tests/fixtures/gitlab/targets-dir/opentofu-production-destroy.yml +2 -0
- {cici_tools-0.16.1 → cici_tools-0.17.1}/tests/fixtures/gitlab/targets-dir/opentofu-production-plan.yml +2 -0
- {cici_tools-0.16.1/tests/fixtures/gitlab/job-variables → cici_tools-0.17.1/tests/fixtures/gitlab/targets-dir}/opentofu-production-trivy.yml +2 -0
- {cici_tools-0.16.1/tests/fixtures/gitlab/job-variables → cici_tools-0.17.1/tests/fixtures/gitlab/targets-dir}/opentofu-production-validate.yml +2 -0
- {cici_tools-0.16.1 → cici_tools-0.17.1}/tests/fixtures/gitlab/targets-dir/opentofu-staging-apply.yml +2 -0
- {cici_tools-0.16.1/tests/fixtures/gitlab/job-variables → cici_tools-0.17.1/tests/fixtures/gitlab/targets-dir}/opentofu-staging-auto-apply.yml +2 -0
- {cici_tools-0.16.1/tests/fixtures/gitlab/job-variables → cici_tools-0.17.1/tests/fixtures/gitlab/targets-dir}/opentofu-staging-destroy.yml +2 -0
- {cici_tools-0.16.1/tests/fixtures/gitlab/job-variables → cici_tools-0.17.1/tests/fixtures/gitlab/targets-dir}/opentofu-staging-plan.yml +2 -0
- {cici_tools-0.16.1/tests/fixtures/gitlab/job-variables → cici_tools-0.17.1/tests/fixtures/gitlab/targets-dir}/opentofu-staging-trivy.yml +2 -0
- {cici_tools-0.16.1 → cici_tools-0.17.1}/tests/fixtures/gitlab/targets-dir/opentofu-staging-validate.yml +2 -0
- {cici_tools-0.16.1/tests/fixtures/gitlab/job-variables → cici_tools-0.17.1/tests/fixtures/gitlab/targets-dir}/opentofu-validate.yml +1 -0
- {cici_tools-0.16.1 → cici_tools-0.17.1}/tests/fixtures/gitlab/terraform/terraform-production-apply.yml +1 -0
- {cici_tools-0.16.1 → cici_tools-0.17.1}/tests/fixtures/gitlab/terraform/terraform-production-plan.yml +1 -0
- {cici_tools-0.16.1 → cici_tools-0.17.1}/tests/fixtures/gitlab/terraform/terraform-staging-apply.yml +1 -0
- {cici_tools-0.16.1 → cici_tools-0.17.1}/tests/fixtures/gitlab/terraform/terraform-staging-destroy.yml +1 -0
- cici_tools-0.17.1/tests/test_expand_job_extends.py +97 -0
- cici_tools-0.17.1/tests/test_precommit_hook_injection.py +47 -0
- {cici_tools-0.16.1 → cici_tools-0.17.1}/.cici/.gitlab-ci.yml +0 -0
- {cici_tools-0.16.1 → cici_tools-0.17.1}/.cici/README.md.j2 +0 -0
- {cici_tools-0.16.1 → cici_tools-0.17.1}/.cici/config.yaml +0 -0
- {cici_tools-0.16.1 → cici_tools-0.17.1}/.dockerignore +0 -0
- {cici_tools-0.16.1 → cici_tools-0.17.1}/.gitignore +0 -0
- {cici_tools-0.16.1 → cici_tools-0.17.1}/.gitlab-ci.yml +0 -0
- {cici_tools-0.16.1 → cici_tools-0.17.1}/.licenserc.yaml +0 -0
- {cici_tools-0.16.1 → cici_tools-0.17.1}/.pre-commit-config.yaml +0 -0
- {cici_tools-0.16.1 → cici_tools-0.17.1}/.pre-commit-hooks.yaml +0 -0
- {cici_tools-0.16.1 → cici_tools-0.17.1}/.prettierignore +0 -0
- {cici_tools-0.16.1 → cici_tools-0.17.1}/.prettierrc.yaml +0 -0
- {cici_tools-0.16.1 → cici_tools-0.17.1}/.secrets.baseline +0 -0
- {cici_tools-0.16.1 → cici_tools-0.17.1}/Dockerfile +0 -0
- {cici_tools-0.16.1 → cici_tools-0.17.1}/LICENSE +0 -0
- {cici_tools-0.16.1 → cici_tools-0.17.1}/MANIFEST.in +0 -0
- {cici_tools-0.16.1 → cici_tools-0.17.1}/NOTICE +0 -0
- {cici_tools-0.16.1 → cici_tools-0.17.1}/README.md +0 -0
- {cici_tools-0.16.1 → cici_tools-0.17.1}/cici/__init__.py +0 -0
- {cici_tools-0.16.1 → cici_tools-0.17.1}/cici/__main__.py +0 -0
- {cici_tools-0.16.1 → cici_tools-0.17.1}/cici/cli/__init__.py +0 -0
- {cici_tools-0.16.1 → cici_tools-0.17.1}/cici/cli/readme.py +0 -0
- {cici_tools-0.16.1 → cici_tools-0.17.1}/cici/cli/schema.py +0 -0
- {cici_tools-0.16.1 → cici_tools-0.17.1}/cici/cli/update.py +0 -0
- {cici_tools-0.16.1 → cici_tools-0.17.1}/cici/config/__init__.py +0 -0
- {cici_tools-0.16.1 → cici_tools-0.17.1}/cici/config/project/__init__.py +0 -0
- {cici_tools-0.16.1 → cici_tools-0.17.1}/cici/config/project/models.py +0 -0
- {cici_tools-0.16.1 → cici_tools-0.17.1}/cici/config/user.py +0 -0
- {cici_tools-0.16.1 → cici_tools-0.17.1}/cici/constants.py +0 -0
- {cici_tools-0.16.1 → cici_tools-0.17.1}/cici/exceptions.py +0 -0
- {cici_tools-0.16.1 → cici_tools-0.17.1}/cici/main.py +0 -0
- {cici_tools-0.16.1 → cici_tools-0.17.1}/cici/paths.py +0 -0
- {cici_tools-0.16.1 → cici_tools-0.17.1}/cici/providers/__init__.py +0 -0
- {cici_tools-0.16.1 → cici_tools-0.17.1}/cici/providers/gitlab/__init__.py +0 -0
- {cici_tools-0.16.1 → cici_tools-0.17.1}/cici/providers/gitlab/constants.py +0 -0
- {cici_tools-0.16.1 → cici_tools-0.17.1}/cici/providers/gitlab/models.py +0 -0
- {cici_tools-0.16.1 → cici_tools-0.17.1}/cici/providers/gitlab/normalizers.py +0 -0
- {cici_tools-0.16.1 → cici_tools-0.17.1}/cici/providers/gitlab/utils.py +0 -0
- {cici_tools-0.16.1 → cici_tools-0.17.1}/cici/providers/gitlab/yaml_style.py +0 -0
- {cici_tools-0.16.1 → cici_tools-0.17.1}/cici/py.typed +0 -0
- {cici_tools-0.16.1 → cici_tools-0.17.1}/cici/schema/LICENSE.gitlab +0 -0
- {cici_tools-0.16.1 → cici_tools-0.17.1}/cici/schema/__init__.py +0 -0
- {cici_tools-0.16.1 → cici_tools-0.17.1}/cici/schema/gitlab-ci.json +0 -0
- {cici_tools-0.16.1 → cici_tools-0.17.1}/cici/templates/README.md.j2 +0 -0
- {cici_tools-0.16.1 → cici_tools-0.17.1}/cici/templates/__init__.py +0 -0
- {cici_tools-0.16.1 → cici_tools-0.17.1}/cici/templates/brief.md.j2 +0 -0
- {cici_tools-0.16.1 → cici_tools-0.17.1}/cici/templates/description.md.j2 +0 -0
- {cici_tools-0.16.1 → cici_tools-0.17.1}/cici/templates/group-list.j2 +0 -0
- {cici_tools-0.16.1 → cici_tools-0.17.1}/cici/templates/groups.md.j2 +0 -0
- {cici_tools-0.16.1 → cici_tools-0.17.1}/cici/templates/target-list.md.j2 +0 -0
- {cici_tools-0.16.1 → cici_tools-0.17.1}/cici/templates/target-table.md.j2 +0 -0
- {cici_tools-0.16.1 → cici_tools-0.17.1}/cici/templates/targets.md.j2 +0 -0
- {cici_tools-0.16.1 → cici_tools-0.17.1}/cici/templates/variable-list.md.j2 +0 -0
- {cici_tools-0.16.1 → cici_tools-0.17.1}/cici/templates/variables.md.j2 +0 -0
- {cici_tools-0.16.1 → cici_tools-0.17.1}/cici/utils.py +0 -0
- {cici_tools-0.16.1 → cici_tools-0.17.1}/cici-bundle.yml +0 -0
- {cici_tools-0.16.1 → cici_tools-0.17.1}/cici-readme.yml +0 -0
- {cici_tools-0.16.1 → cici_tools-0.17.1}/cici-update.yml +0 -0
- {cici_tools-0.16.1 → cici_tools-0.17.1}/cici_tools.egg-info/dependency_links.txt +0 -0
- {cici_tools-0.16.1 → cici_tools-0.17.1}/cici_tools.egg-info/entry_points.txt +0 -0
- {cici_tools-0.16.1 → cici_tools-0.17.1}/cici_tools.egg-info/requires.txt +0 -0
- {cici_tools-0.16.1 → cici_tools-0.17.1}/cici_tools.egg-info/top_level.txt +0 -0
- {cici_tools-0.16.1 → cici_tools-0.17.1}/docs/bundle.md +0 -0
- {cici_tools-0.16.1 → cici_tools-0.17.1}/docs/config-file.md +0 -0
- {cici_tools-0.16.1 → cici_tools-0.17.1}/docs/getting-started.md +0 -0
- {cici_tools-0.16.1 → cici_tools-0.17.1}/docs/gitlab-includes.md +0 -0
- {cici_tools-0.16.1 → cici_tools-0.17.1}/docs/index.md +0 -0
- {cici_tools-0.16.1 → cici_tools-0.17.1}/docs/install.md +0 -0
- {cici_tools-0.16.1 → cici_tools-0.17.1}/docs/readme.md +0 -0
- {cici_tools-0.16.1 → cici_tools-0.17.1}/docs/style.css +0 -0
- {cici_tools-0.16.1 → cici_tools-0.17.1}/docs/update.md +0 -0
- {cici_tools-0.16.1 → cici_tools-0.17.1}/makefile +0 -0
- {cici_tools-0.16.1 → cici_tools-0.17.1}/mkdocs.yml +0 -0
- {cici_tools-0.16.1 → cici_tools-0.17.1}/pyproject.toml +0 -0
- {cici_tools-0.16.1 → cici_tools-0.17.1}/scripts/gen-api-doc.py +0 -0
- {cici_tools-0.16.1 → cici_tools-0.17.1}/setup.cfg +0 -0
- {cici_tools-0.16.1 → cici_tools-0.17.1}/tests/fixtures/gitlab/extends/.cici/.gitlab-ci.yml +0 -0
- {cici_tools-0.16.1 → cici_tools-0.17.1}/tests/fixtures/gitlab/extends/simple-job.yml +0 -0
- {cici_tools-0.16.1 → cici_tools-0.17.1}/tests/fixtures/gitlab/helm/.cici/.gitlab-ci.yml +0 -0
- {cici_tools-0.16.1 → cici_tools-0.17.1}/tests/fixtures/gitlab/helm/helm-cm-push.yml +0 -0
- {cici_tools-0.16.1 → cici_tools-0.17.1}/tests/fixtures/gitlab/helm/helm-docs.yml +0 -0
- {cici_tools-0.16.1 → cici_tools-0.17.1}/tests/fixtures/gitlab/helm/helm-lint.yml +0 -0
- {cici_tools-0.16.1 → cici_tools-0.17.1}/tests/fixtures/gitlab/job-variables/.cici/.gitlab-ci.yml +0 -0
- {cici_tools-0.16.1 → cici_tools-0.17.1}/tests/fixtures/gitlab/job-variables/.cici/config.yaml +0 -0
- {cici_tools-0.16.1 → cici_tools-0.17.1}/tests/fixtures/gitlab/job-variables/opentofu-fmt.yml +0 -0
- {cici_tools-0.16.1 → cici_tools-0.17.1}/tests/fixtures/gitlab/job-variables/opentofu-module-build.yml +0 -0
- {cici_tools-0.16.1 → cici_tools-0.17.1}/tests/fixtures/gitlab/job-variables/opentofu-module-release.yml +0 -0
- {cici_tools-0.16.1 → cici_tools-0.17.1}/tests/fixtures/gitlab/job-variables/opentofu-trivy.yml +0 -0
- {cici_tools-0.16.1 → cici_tools-0.17.1}/tests/fixtures/gitlab/library-validator/.cici/README.md.j2 +0 -0
- {cici_tools-0.16.1 → cici_tools-0.17.1}/tests/fixtures/gitlab/library-validator/.cici/config.yaml +0 -0
- {cici_tools-0.16.1 → cici_tools-0.17.1}/tests/fixtures/gitlab/library-validator/README.md +0 -0
- {cici_tools-0.16.1 → cici_tools-0.17.1}/tests/fixtures/gitlab/list-anchors/.cici/.gitlab-ci.yml +0 -0
- {cici_tools-0.16.1 → cici_tools-0.17.1}/tests/fixtures/gitlab/list-anchors/install.yml +0 -0
- {cici_tools-0.16.1 → cici_tools-0.17.1}/tests/fixtures/gitlab/nested-extends/.cici/.gitlab-ci.yml +0 -0
- {cici_tools-0.16.1 → cici_tools-0.17.1}/tests/fixtures/gitlab/nested-extends/simple-job.yml +0 -0
- {cici_tools-0.16.1 → cici_tools-0.17.1}/tests/fixtures/gitlab/reports/.cici/.gitlab-ci.yml +0 -0
- {cici_tools-0.16.1 → cici_tools-0.17.1}/tests/fixtures/gitlab/reports/reports-container-scanning.yml +0 -0
- {cici_tools-0.16.1 → cici_tools-0.17.1}/tests/fixtures/gitlab/reports/reports-coverage.yml +0 -0
- {cici_tools-0.16.1 → cici_tools-0.17.1}/tests/fixtures/gitlab/reports/reports-junit.yml +0 -0
- {cici_tools-0.16.1 → cici_tools-0.17.1}/tests/fixtures/gitlab/reports/reports-terraform.yml +0 -0
- {cici_tools-0.16.1 → cici_tools-0.17.1}/tests/fixtures/gitlab/service-key/.cici/.gitlab-ci.yml +0 -0
- {cici_tools-0.16.1 → cici_tools-0.17.1}/tests/fixtures/gitlab/service-key/.cici/config.yaml +0 -0
- {cici_tools-0.16.1 → cici_tools-0.17.1}/tests/fixtures/gitlab/service-key/container-docker-multiarch-amd64.yml +0 -0
- {cici_tools-0.16.1 → cici_tools-0.17.1}/tests/fixtures/gitlab/service-key/container-docker-multiarch-arm32v6.yml +0 -0
- {cici_tools-0.16.1 → cici_tools-0.17.1}/tests/fixtures/gitlab/service-key/container-docker-multiarch-arm32v7.yml +0 -0
- {cici_tools-0.16.1 → cici_tools-0.17.1}/tests/fixtures/gitlab/service-key/container-docker-multiarch-arm64v8.yml +0 -0
- {cici_tools-0.16.1 → cici_tools-0.17.1}/tests/fixtures/gitlab/service-key/container-docker-multiarch-i386.yml +0 -0
- {cici_tools-0.16.1 → cici_tools-0.17.1}/tests/fixtures/gitlab/service-key/container-docker-multiarch-manifest.yml +0 -0
- {cici_tools-0.16.1 → cici_tools-0.17.1}/tests/fixtures/gitlab/service-key/container-docker-multiarch.yml +0 -0
- {cici_tools-0.16.1 → cici_tools-0.17.1}/tests/fixtures/gitlab/service-key/container-docker.yml +0 -0
- {cici_tools-0.16.1 → cici_tools-0.17.1}/tests/fixtures/gitlab/service-key/container-hadolint.yml +0 -0
- {cici_tools-0.16.1 → cici_tools-0.17.1}/tests/fixtures/gitlab/service-key/container-trivy.yml +0 -0
- {cici_tools-0.16.1 → cici_tools-0.17.1}/tests/fixtures/gitlab/simple/.cici/.gitlab-ci.yml +0 -0
- {cici_tools-0.16.1 → cici_tools-0.17.1}/tests/fixtures/gitlab/simple/simple-job.yml +0 -0
- {cici_tools-0.16.1 → cici_tools-0.17.1}/tests/fixtures/gitlab/stages/.cici/.gitlab-ci.yml +0 -0
- {cici_tools-0.16.1 → cici_tools-0.17.1}/tests/fixtures/gitlab/stages/simple-job.yml +0 -0
- {cici_tools-0.16.1 → cici_tools-0.17.1}/tests/fixtures/gitlab/targets-dir/.cici/.gitlab-ci.yml +0 -0
- {cici_tools-0.16.1 → cici_tools-0.17.1}/tests/fixtures/gitlab/targets-dir/.cici/config.yaml +0 -0
- {cici_tools-0.16.1 → cici_tools-0.17.1}/tests/fixtures/gitlab/targets-dir/.cici/targets/opentofu-development-apply.yaml +0 -0
- {cici_tools-0.16.1 → cici_tools-0.17.1}/tests/fixtures/gitlab/targets-dir/.cici/targets/opentofu-development-auto-apply.yaml +0 -0
- {cici_tools-0.16.1 → cici_tools-0.17.1}/tests/fixtures/gitlab/targets-dir/.cici/targets/opentofu-development-destroy.yaml +0 -0
- {cici_tools-0.16.1 → cici_tools-0.17.1}/tests/fixtures/gitlab/targets-dir/.cici/targets/opentofu-development-plan.yaml +0 -0
- {cici_tools-0.16.1 → cici_tools-0.17.1}/tests/fixtures/gitlab/targets-dir/.cici/targets/opentofu-development-validate.yaml +0 -0
- {cici_tools-0.16.1 → cici_tools-0.17.1}/tests/fixtures/gitlab/targets-dir/.cici/targets/opentofu-fmt.yaml +0 -0
- {cici_tools-0.16.1 → cici_tools-0.17.1}/tests/fixtures/gitlab/targets-dir/.cici/targets/opentofu-module-build.yaml +0 -0
- {cici_tools-0.16.1 → cici_tools-0.17.1}/tests/fixtures/gitlab/targets-dir/.cici/targets/opentofu-module-release.yaml +0 -0
- {cici_tools-0.16.1 → cici_tools-0.17.1}/tests/fixtures/gitlab/targets-dir/.cici/targets/opentofu-production-apply.yaml +0 -0
- {cici_tools-0.16.1 → cici_tools-0.17.1}/tests/fixtures/gitlab/targets-dir/.cici/targets/opentofu-production-auto-apply.yaml +0 -0
- {cici_tools-0.16.1 → cici_tools-0.17.1}/tests/fixtures/gitlab/targets-dir/.cici/targets/opentofu-production-destroy.yaml +0 -0
- {cici_tools-0.16.1 → cici_tools-0.17.1}/tests/fixtures/gitlab/targets-dir/.cici/targets/opentofu-production-plan.yaml +0 -0
- {cici_tools-0.16.1 → cici_tools-0.17.1}/tests/fixtures/gitlab/targets-dir/.cici/targets/opentofu-production-trivy.yaml +0 -0
- {cici_tools-0.16.1 → cici_tools-0.17.1}/tests/fixtures/gitlab/targets-dir/.cici/targets/opentofu-production-validate.yaml +0 -0
- {cici_tools-0.16.1 → cici_tools-0.17.1}/tests/fixtures/gitlab/targets-dir/.cici/targets/opentofu-staging-apply.yaml +0 -0
- {cici_tools-0.16.1 → cici_tools-0.17.1}/tests/fixtures/gitlab/targets-dir/.cici/targets/opentofu-staging-auto-apply.yaml +0 -0
- {cici_tools-0.16.1 → cici_tools-0.17.1}/tests/fixtures/gitlab/targets-dir/.cici/targets/opentofu-staging-destroy.yaml +0 -0
- {cici_tools-0.16.1 → cici_tools-0.17.1}/tests/fixtures/gitlab/targets-dir/.cici/targets/opentofu-staging-plan.yaml +0 -0
- {cici_tools-0.16.1 → cici_tools-0.17.1}/tests/fixtures/gitlab/targets-dir/.cici/targets/opentofu-staging-trivy.yaml +0 -0
- {cici_tools-0.16.1 → cici_tools-0.17.1}/tests/fixtures/gitlab/targets-dir/.cici/targets/opentofu-staging-validate.yaml +0 -0
- {cici_tools-0.16.1 → cici_tools-0.17.1}/tests/fixtures/gitlab/targets-dir/.cici/targets/opentofu-trivy.yaml +0 -0
- {cici_tools-0.16.1 → cici_tools-0.17.1}/tests/fixtures/gitlab/targets-dir/.cici/targets/opentofu-validate.yaml +0 -0
- {cici_tools-0.16.1 → cici_tools-0.17.1}/tests/fixtures/gitlab/targets-dir/.cici/targets/tofu-development-trivy.yaml +0 -0
- {cici_tools-0.16.1 → cici_tools-0.17.1}/tests/fixtures/gitlab/targets-dir/opentofu-fmt.yml +0 -0
- {cici_tools-0.16.1 → cici_tools-0.17.1}/tests/fixtures/gitlab/targets-dir/opentofu-module-build.yml +0 -0
- {cici_tools-0.16.1 → cici_tools-0.17.1}/tests/fixtures/gitlab/targets-dir/opentofu-module-release.yml +0 -0
- {cici_tools-0.16.1 → cici_tools-0.17.1}/tests/fixtures/gitlab/targets-dir/opentofu-trivy.yml +0 -0
- {cici_tools-0.16.1 → cici_tools-0.17.1}/tests/fixtures/gitlab/terraform/.cici/.gitlab-ci.yml +0 -0
- {cici_tools-0.16.1 → cici_tools-0.17.1}/tests/fixtures/gitlab/terraform/terraform-fmt.yml +0 -0
- {cici_tools-0.16.1 → cici_tools-0.17.1}/tests/fixtures/gitlab/variables/.cici/.gitlab-ci.yml +0 -0
- {cici_tools-0.16.1 → cici_tools-0.17.1}/tests/fixtures/gitlab/variables/simple-job.yml +0 -0
- {cici_tools-0.16.1 → cici_tools-0.17.1}/tests/test_build.py +0 -0
- {cici_tools-0.16.1 → cici_tools-0.17.1}/tests/test_cli.py +0 -0
- {cici_tools-0.16.1 → cici_tools-0.17.1}/tests/test_import.py +0 -0
- {cici_tools-0.16.1 → cici_tools-0.17.1}/tests/test_resolve_targets.py +0 -0
|
@@ -28,7 +28,7 @@ version_tuple: VERSION_TUPLE
|
|
|
28
28
|
commit_id: COMMIT_ID
|
|
29
29
|
__commit_id__: COMMIT_ID
|
|
30
30
|
|
|
31
|
-
__version__ = version = '0.
|
|
32
|
-
__version_tuple__ = version_tuple = (0,
|
|
31
|
+
__version__ = version = '0.17.1'
|
|
32
|
+
__version_tuple__ = version_tuple = (0, 17, 1)
|
|
33
33
|
|
|
34
|
-
__commit_id__ = commit_id = '
|
|
34
|
+
__commit_id__ = commit_id = 'ge578edc48'
|
|
@@ -64,6 +64,7 @@ def load_cici_or_nothing(base_path: Path) -> Optional[cici_config.File]:
|
|
|
64
64
|
|
|
65
65
|
|
|
66
66
|
def bundle_command(parser, args):
|
|
67
|
+
|
|
67
68
|
logging.basicConfig(level=logging.INFO, format="[%(levelname)s] %(message)s")
|
|
68
69
|
|
|
69
70
|
provider = import_module(f".{DEFAULT_PROVIDER}", "cici.providers")
|
|
@@ -142,19 +142,25 @@ def loads(
|
|
|
142
142
|
precommit_hooks = {}
|
|
143
143
|
|
|
144
144
|
yaml = ruamel.yaml.YAML(typ="safe")
|
|
145
|
+
|
|
145
146
|
data = yaml.load(text)
|
|
146
147
|
|
|
147
148
|
# verify targets exists even if empty
|
|
148
149
|
data.setdefault("targets", [])
|
|
149
150
|
|
|
150
|
-
# Inject precommit/gitlab
|
|
151
|
+
# Inject precommit/gitlab include references into each target
|
|
152
|
+
for target in data["targets"]:
|
|
153
|
+
name = target["name"]
|
|
151
154
|
|
|
152
|
-
|
|
153
|
-
|
|
155
|
+
# if precommit hook exists in .pre-commit-hooks.yml, attach a pre-commit hook reference
|
|
156
|
+
# Injected object must match PreCommitHookTarget schema to keep msgspec happy
|
|
157
|
+
if name in precommit_hooks:
|
|
158
|
+
target["precommit_hook"] = {"name": name}
|
|
159
|
+
else:
|
|
160
|
+
# Remove key entirely when no hook exists so msgspec can apply
|
|
161
|
+
target.pop("precommit_hook", None)
|
|
154
162
|
|
|
155
|
-
|
|
156
|
-
target["precommit_hook"] = {"name": target["name"]}
|
|
157
|
-
target["gitlab_include"] = {"name": target["name"]}
|
|
163
|
+
target["gitlab_include"] = {"name": name}
|
|
158
164
|
|
|
159
165
|
# Debug to test injection
|
|
160
166
|
# print("After injection:", data["targets"])
|
|
@@ -43,7 +43,12 @@ def to_dict(obj):
|
|
|
43
43
|
return msgspec.json.decode(encoded)
|
|
44
44
|
|
|
45
45
|
|
|
46
|
-
def expand_job_extends(
|
|
46
|
+
def expand_job_extends(
|
|
47
|
+
jobs: dict[str, gitlab.Job],
|
|
48
|
+
job: gitlab.Job,
|
|
49
|
+
root_name: str,
|
|
50
|
+
) -> gitlab.Job:
|
|
51
|
+
|
|
47
52
|
# If the job does not use 'extends', return it unchanged
|
|
48
53
|
if not job.extends:
|
|
49
54
|
return job
|
|
@@ -58,11 +63,20 @@ def expand_job_extends(jobs: dict[str, gitlab.Job], job: gitlab.Job) -> gitlab.J
|
|
|
58
63
|
# for each parent job listed in extends:
|
|
59
64
|
for extend in extends:
|
|
60
65
|
# recursively expand the parent first so fit the parent also has 'extends' it gets resolved too
|
|
61
|
-
parent_job = expand_job_extends(jobs, jobs[extend])
|
|
66
|
+
parent_job = expand_job_extends(jobs, jobs[extend], root_name=root_name)
|
|
62
67
|
# convert expanded parent struct into plain dict to easily merge its fields
|
|
63
68
|
parent_dict = to_dict(parent_job)
|
|
64
|
-
|
|
65
|
-
merged.update
|
|
69
|
+
|
|
70
|
+
# Replace merged.update with block to preserve variables from ALL parents
|
|
71
|
+
for field_name, parent_value in parent_dict.items():
|
|
72
|
+
existing_value = merged.get(field_name)
|
|
73
|
+
|
|
74
|
+
if isinstance(parent_value, dict) and isinstance(existing_value, dict):
|
|
75
|
+
# deep merge dict fields (ie variables) so later, parents
|
|
76
|
+
# override keys without wiping earlier ones
|
|
77
|
+
merged[field_name] = {**existing_value, **parent_value}
|
|
78
|
+
else:
|
|
79
|
+
merged[field_name] = parent_value
|
|
66
80
|
|
|
67
81
|
# convert child job into a dict
|
|
68
82
|
child_dict = to_dict(job)
|
|
@@ -89,8 +103,9 @@ def expand_job_extends(jobs: dict[str, gitlab.Job], job: gitlab.Job) -> gitlab.J
|
|
|
89
103
|
def expand_jobs(file_struct: gitlab.File) -> gitlab.File:
|
|
90
104
|
patched_jobs = {}
|
|
91
105
|
for job_name, job in file_struct.jobs.items():
|
|
92
|
-
expanded_job = expand_job_extends(file_struct.jobs, job)
|
|
106
|
+
expanded_job = expand_job_extends(file_struct.jobs, job, root_name=job_name)
|
|
93
107
|
patched_jobs[job_name] = expanded_job
|
|
108
|
+
|
|
94
109
|
return replace(file_struct, jobs=patched_jobs)
|
|
95
110
|
|
|
96
111
|
|
|
@@ -278,7 +293,9 @@ def loads(
|
|
|
278
293
|
file_struct = expand_jobs(file_struct)
|
|
279
294
|
|
|
280
295
|
# inject container defaults
|
|
281
|
-
|
|
296
|
+
file_struct = inject_container_into_job(file_struct, cici_config_file)
|
|
297
|
+
|
|
298
|
+
return file_struct
|
|
282
299
|
|
|
283
300
|
|
|
284
301
|
# convert struct back to dict, apply container injection + YAML dump
|
|
@@ -81,7 +81,9 @@ docs/update.md
|
|
|
81
81
|
scripts/gen-api-doc.py
|
|
82
82
|
tests/test_build.py
|
|
83
83
|
tests/test_cli.py
|
|
84
|
+
tests/test_expand_job_extends.py
|
|
84
85
|
tests/test_import.py
|
|
86
|
+
tests/test_precommit_hook_injection.py
|
|
85
87
|
tests/test_resolve_targets.py
|
|
86
88
|
tests/fixtures/gitlab/extends/simple-job.yml
|
|
87
89
|
tests/fixtures/gitlab/extends/.cici/.gitlab-ci.yml
|
|
@@ -28,10 +28,8 @@ rpds-py==0.30.0
|
|
|
28
28
|
# via
|
|
29
29
|
# jsonschema
|
|
30
30
|
# referencing
|
|
31
|
-
ruamel-yaml==0.
|
|
31
|
+
ruamel-yaml==0.19.1
|
|
32
32
|
# via cici-tools (pyproject.toml)
|
|
33
|
-
ruamel-yaml-clib==0.2.15
|
|
34
|
-
# via ruamel-yaml
|
|
35
33
|
termcolor==3.3.0
|
|
36
34
|
# via cici-tools (pyproject.toml)
|
|
37
35
|
typing-extensions==4.15.0
|
|
@@ -32,6 +32,8 @@ opentofu-development-apply:
|
|
|
32
32
|
stage: deploy
|
|
33
33
|
image: "registry.gitlab.com/components/opentofu/gitlab-opentofu:latest"
|
|
34
34
|
variables:
|
|
35
|
+
OPENTOFU_ROOT: "${CI_PROJECT_DIR}/deploy/${OPENTOFU_STATE_NAME}"
|
|
36
|
+
OPENTOFU_STATE_NAME: development
|
|
35
37
|
GIT_DEPTH: "1"
|
|
36
38
|
TF_STATE_NAME: "$OPENTOFU_STATE_NAME"
|
|
37
39
|
TF_ROOT: "$OPENTOFU_ROOT"
|
|
@@ -32,6 +32,8 @@ opentofu-development-auto-apply:
|
|
|
32
32
|
stage: deploy
|
|
33
33
|
image: "registry.gitlab.com/components/opentofu/gitlab-opentofu:latest"
|
|
34
34
|
variables:
|
|
35
|
+
OPENTOFU_ROOT: "${CI_PROJECT_DIR}/deploy/${OPENTOFU_STATE_NAME}"
|
|
36
|
+
OPENTOFU_STATE_NAME: development
|
|
35
37
|
GIT_DEPTH: "1"
|
|
36
38
|
TF_STATE_NAME: "$OPENTOFU_STATE_NAME"
|
|
37
39
|
TF_ROOT: "$OPENTOFU_ROOT"
|
|
@@ -32,6 +32,8 @@ opentofu-development-destroy:
|
|
|
32
32
|
stage: deploy
|
|
33
33
|
image: "registry.gitlab.com/components/opentofu/gitlab-opentofu:latest"
|
|
34
34
|
variables:
|
|
35
|
+
OPENTOFU_ROOT: "${CI_PROJECT_DIR}/deploy/${OPENTOFU_STATE_NAME}"
|
|
36
|
+
OPENTOFU_STATE_NAME: development
|
|
35
37
|
GIT_DEPTH: "1"
|
|
36
38
|
TF_STATE_NAME: "$OPENTOFU_STATE_NAME"
|
|
37
39
|
TF_ROOT: "$OPENTOFU_ROOT"
|
|
@@ -32,6 +32,8 @@ opentofu-development-plan:
|
|
|
32
32
|
stage: test
|
|
33
33
|
image: "registry.gitlab.com/components/opentofu/gitlab-opentofu:latest"
|
|
34
34
|
variables:
|
|
35
|
+
OPENTOFU_ROOT: "${CI_PROJECT_DIR}/deploy/${OPENTOFU_STATE_NAME}"
|
|
36
|
+
OPENTOFU_STATE_NAME: development
|
|
35
37
|
GIT_DEPTH: "1"
|
|
36
38
|
TF_STATE_NAME: "$OPENTOFU_STATE_NAME"
|
|
37
39
|
TF_ROOT: "$OPENTOFU_ROOT"
|
|
@@ -32,6 +32,8 @@ opentofu-development-trivy:
|
|
|
32
32
|
stage: build
|
|
33
33
|
image: "registry.gitlab.com/components/opentofu/gitlab-opentofu:latest"
|
|
34
34
|
variables:
|
|
35
|
+
OPENTOFU_ROOT: "${CI_PROJECT_DIR}/deploy/${OPENTOFU_STATE_NAME}"
|
|
36
|
+
OPENTOFU_STATE_NAME: development
|
|
35
37
|
GIT_DEPTH: "1"
|
|
36
38
|
TF_STATE_NAME: "$OPENTOFU_STATE_NAME"
|
|
37
39
|
TF_ROOT: "$OPENTOFU_ROOT"
|
|
@@ -32,6 +32,8 @@ opentofu-development-validate:
|
|
|
32
32
|
stage: test
|
|
33
33
|
image: "registry.gitlab.com/components/opentofu/gitlab-opentofu:latest"
|
|
34
34
|
variables:
|
|
35
|
+
OPENTOFU_ROOT: "${CI_PROJECT_DIR}/deploy/${OPENTOFU_STATE_NAME}"
|
|
36
|
+
OPENTOFU_STATE_NAME: development
|
|
35
37
|
GIT_DEPTH: "1"
|
|
36
38
|
TF_STATE_NAME: "$OPENTOFU_STATE_NAME"
|
|
37
39
|
TF_ROOT: "$OPENTOFU_ROOT"
|
|
@@ -32,6 +32,8 @@ opentofu-production-apply:
|
|
|
32
32
|
stage: deploy
|
|
33
33
|
image: "registry.gitlab.com/components/opentofu/gitlab-opentofu:latest"
|
|
34
34
|
variables:
|
|
35
|
+
OPENTOFU_ROOT: "${CI_PROJECT_DIR}/deploy/${OPENTOFU_STATE_NAME}"
|
|
36
|
+
OPENTOFU_STATE_NAME: production
|
|
35
37
|
GIT_DEPTH: "1"
|
|
36
38
|
TF_STATE_NAME: "$OPENTOFU_STATE_NAME"
|
|
37
39
|
TF_ROOT: "$OPENTOFU_ROOT"
|
|
@@ -32,6 +32,8 @@ opentofu-production-auto-apply:
|
|
|
32
32
|
stage: deploy
|
|
33
33
|
image: "registry.gitlab.com/components/opentofu/gitlab-opentofu:latest"
|
|
34
34
|
variables:
|
|
35
|
+
OPENTOFU_ROOT: "${CI_PROJECT_DIR}/deploy/${OPENTOFU_STATE_NAME}"
|
|
36
|
+
OPENTOFU_STATE_NAME: production
|
|
35
37
|
GIT_DEPTH: "1"
|
|
36
38
|
TF_STATE_NAME: "$OPENTOFU_STATE_NAME"
|
|
37
39
|
TF_ROOT: "$OPENTOFU_ROOT"
|
|
@@ -32,6 +32,8 @@ opentofu-production-destroy:
|
|
|
32
32
|
stage: deploy
|
|
33
33
|
image: "registry.gitlab.com/components/opentofu/gitlab-opentofu:latest"
|
|
34
34
|
variables:
|
|
35
|
+
OPENTOFU_ROOT: "${CI_PROJECT_DIR}/deploy/${OPENTOFU_STATE_NAME}"
|
|
36
|
+
OPENTOFU_STATE_NAME: production
|
|
35
37
|
GIT_DEPTH: "1"
|
|
36
38
|
TF_STATE_NAME: "$OPENTOFU_STATE_NAME"
|
|
37
39
|
TF_ROOT: "$OPENTOFU_ROOT"
|
|
@@ -32,6 +32,8 @@ opentofu-production-plan:
|
|
|
32
32
|
stage: test
|
|
33
33
|
image: "registry.gitlab.com/components/opentofu/gitlab-opentofu:latest"
|
|
34
34
|
variables:
|
|
35
|
+
OPENTOFU_ROOT: "${CI_PROJECT_DIR}/deploy/${OPENTOFU_STATE_NAME}"
|
|
36
|
+
OPENTOFU_STATE_NAME: production
|
|
35
37
|
GIT_DEPTH: "1"
|
|
36
38
|
TF_STATE_NAME: "$OPENTOFU_STATE_NAME"
|
|
37
39
|
TF_ROOT: "$OPENTOFU_ROOT"
|
|
@@ -32,6 +32,8 @@ opentofu-production-trivy:
|
|
|
32
32
|
stage: build
|
|
33
33
|
image: "registry.gitlab.com/components/opentofu/gitlab-opentofu:latest"
|
|
34
34
|
variables:
|
|
35
|
+
OPENTOFU_ROOT: "${CI_PROJECT_DIR}/deploy/${OPENTOFU_STATE_NAME}"
|
|
36
|
+
OPENTOFU_STATE_NAME: production
|
|
35
37
|
GIT_DEPTH: "1"
|
|
36
38
|
TF_STATE_NAME: "$OPENTOFU_STATE_NAME"
|
|
37
39
|
TF_ROOT: "$OPENTOFU_ROOT"
|
|
@@ -32,6 +32,8 @@ opentofu-production-validate:
|
|
|
32
32
|
stage: test
|
|
33
33
|
image: "registry.gitlab.com/components/opentofu/gitlab-opentofu:latest"
|
|
34
34
|
variables:
|
|
35
|
+
OPENTOFU_ROOT: "${CI_PROJECT_DIR}/deploy/${OPENTOFU_STATE_NAME}"
|
|
36
|
+
OPENTOFU_STATE_NAME: production
|
|
35
37
|
GIT_DEPTH: "1"
|
|
36
38
|
TF_STATE_NAME: "$OPENTOFU_STATE_NAME"
|
|
37
39
|
TF_ROOT: "$OPENTOFU_ROOT"
|
|
@@ -32,6 +32,8 @@ opentofu-staging-apply:
|
|
|
32
32
|
stage: deploy
|
|
33
33
|
image: "registry.gitlab.com/components/opentofu/gitlab-opentofu:latest"
|
|
34
34
|
variables:
|
|
35
|
+
OPENTOFU_ROOT: "${CI_PROJECT_DIR}/deploy/${OPENTOFU_STATE_NAME}"
|
|
36
|
+
OPENTOFU_STATE_NAME: staging
|
|
35
37
|
GIT_DEPTH: "1"
|
|
36
38
|
TF_STATE_NAME: "$OPENTOFU_STATE_NAME"
|
|
37
39
|
TF_ROOT: "$OPENTOFU_ROOT"
|
|
@@ -32,6 +32,8 @@ opentofu-staging-auto-apply:
|
|
|
32
32
|
stage: deploy
|
|
33
33
|
image: "registry.gitlab.com/components/opentofu/gitlab-opentofu:latest"
|
|
34
34
|
variables:
|
|
35
|
+
OPENTOFU_ROOT: "${CI_PROJECT_DIR}/deploy/${OPENTOFU_STATE_NAME}"
|
|
36
|
+
OPENTOFU_STATE_NAME: staging
|
|
35
37
|
GIT_DEPTH: "1"
|
|
36
38
|
TF_STATE_NAME: "$OPENTOFU_STATE_NAME"
|
|
37
39
|
TF_ROOT: "$OPENTOFU_ROOT"
|
|
@@ -32,6 +32,8 @@ opentofu-staging-destroy:
|
|
|
32
32
|
stage: deploy
|
|
33
33
|
image: "registry.gitlab.com/components/opentofu/gitlab-opentofu:latest"
|
|
34
34
|
variables:
|
|
35
|
+
OPENTOFU_ROOT: "${CI_PROJECT_DIR}/deploy/${OPENTOFU_STATE_NAME}"
|
|
36
|
+
OPENTOFU_STATE_NAME: staging
|
|
35
37
|
GIT_DEPTH: "1"
|
|
36
38
|
TF_STATE_NAME: "$OPENTOFU_STATE_NAME"
|
|
37
39
|
TF_ROOT: "$OPENTOFU_ROOT"
|
|
@@ -32,6 +32,8 @@ opentofu-staging-plan:
|
|
|
32
32
|
stage: test
|
|
33
33
|
image: "registry.gitlab.com/components/opentofu/gitlab-opentofu:latest"
|
|
34
34
|
variables:
|
|
35
|
+
OPENTOFU_ROOT: "${CI_PROJECT_DIR}/deploy/${OPENTOFU_STATE_NAME}"
|
|
36
|
+
OPENTOFU_STATE_NAME: staging
|
|
35
37
|
GIT_DEPTH: "1"
|
|
36
38
|
TF_STATE_NAME: "$OPENTOFU_STATE_NAME"
|
|
37
39
|
TF_ROOT: "$OPENTOFU_ROOT"
|
|
@@ -32,6 +32,8 @@ opentofu-staging-trivy:
|
|
|
32
32
|
stage: build
|
|
33
33
|
image: "registry.gitlab.com/components/opentofu/gitlab-opentofu:latest"
|
|
34
34
|
variables:
|
|
35
|
+
OPENTOFU_ROOT: "${CI_PROJECT_DIR}/deploy/${OPENTOFU_STATE_NAME}"
|
|
36
|
+
OPENTOFU_STATE_NAME: staging
|
|
35
37
|
GIT_DEPTH: "1"
|
|
36
38
|
TF_STATE_NAME: "$OPENTOFU_STATE_NAME"
|
|
37
39
|
TF_ROOT: "$OPENTOFU_ROOT"
|
|
@@ -32,6 +32,8 @@ opentofu-staging-validate:
|
|
|
32
32
|
stage: test
|
|
33
33
|
image: "registry.gitlab.com/components/opentofu/gitlab-opentofu:latest"
|
|
34
34
|
variables:
|
|
35
|
+
OPENTOFU_ROOT: "${CI_PROJECT_DIR}/deploy/${OPENTOFU_STATE_NAME}"
|
|
36
|
+
OPENTOFU_STATE_NAME: staging
|
|
35
37
|
GIT_DEPTH: "1"
|
|
36
38
|
TF_STATE_NAME: "$OPENTOFU_STATE_NAME"
|
|
37
39
|
TF_ROOT: "$OPENTOFU_ROOT"
|
|
@@ -32,6 +32,8 @@ opentofu-development-apply:
|
|
|
32
32
|
stage: deploy
|
|
33
33
|
image: "registry.gitlab.com/components/opentofu/gitlab-opentofu:latest"
|
|
34
34
|
variables:
|
|
35
|
+
OPENTOFU_ROOT: "${CI_PROJECT_DIR}/deploy/${OPENTOFU_STATE_NAME}"
|
|
36
|
+
OPENTOFU_STATE_NAME: development
|
|
35
37
|
GIT_DEPTH: "1"
|
|
36
38
|
TF_STATE_NAME: "$OPENTOFU_STATE_NAME"
|
|
37
39
|
TF_ROOT: "$OPENTOFU_ROOT"
|
|
@@ -32,6 +32,8 @@ opentofu-development-auto-apply:
|
|
|
32
32
|
stage: deploy
|
|
33
33
|
image: "registry.gitlab.com/components/opentofu/gitlab-opentofu:latest"
|
|
34
34
|
variables:
|
|
35
|
+
OPENTOFU_ROOT: "${CI_PROJECT_DIR}/deploy/${OPENTOFU_STATE_NAME}"
|
|
36
|
+
OPENTOFU_STATE_NAME: development
|
|
35
37
|
GIT_DEPTH: "1"
|
|
36
38
|
TF_STATE_NAME: "$OPENTOFU_STATE_NAME"
|
|
37
39
|
TF_ROOT: "$OPENTOFU_ROOT"
|
|
@@ -32,6 +32,8 @@ opentofu-development-destroy:
|
|
|
32
32
|
stage: deploy
|
|
33
33
|
image: "registry.gitlab.com/components/opentofu/gitlab-opentofu:latest"
|
|
34
34
|
variables:
|
|
35
|
+
OPENTOFU_ROOT: "${CI_PROJECT_DIR}/deploy/${OPENTOFU_STATE_NAME}"
|
|
36
|
+
OPENTOFU_STATE_NAME: development
|
|
35
37
|
GIT_DEPTH: "1"
|
|
36
38
|
TF_STATE_NAME: "$OPENTOFU_STATE_NAME"
|
|
37
39
|
TF_ROOT: "$OPENTOFU_ROOT"
|
|
@@ -32,6 +32,8 @@ opentofu-development-plan:
|
|
|
32
32
|
stage: test
|
|
33
33
|
image: "registry.gitlab.com/components/opentofu/gitlab-opentofu:latest"
|
|
34
34
|
variables:
|
|
35
|
+
OPENTOFU_ROOT: "${CI_PROJECT_DIR}/deploy/${OPENTOFU_STATE_NAME}"
|
|
36
|
+
OPENTOFU_STATE_NAME: development
|
|
35
37
|
GIT_DEPTH: "1"
|
|
36
38
|
TF_STATE_NAME: "$OPENTOFU_STATE_NAME"
|
|
37
39
|
TF_ROOT: "$OPENTOFU_ROOT"
|
|
@@ -32,6 +32,8 @@ opentofu-development-trivy:
|
|
|
32
32
|
stage: build
|
|
33
33
|
image: "registry.gitlab.com/components/opentofu/gitlab-opentofu:latest"
|
|
34
34
|
variables:
|
|
35
|
+
OPENTOFU_ROOT: "${CI_PROJECT_DIR}/deploy/${OPENTOFU_STATE_NAME}"
|
|
36
|
+
OPENTOFU_STATE_NAME: development
|
|
35
37
|
GIT_DEPTH: "1"
|
|
36
38
|
TF_STATE_NAME: "$OPENTOFU_STATE_NAME"
|
|
37
39
|
TF_ROOT: "$OPENTOFU_ROOT"
|
|
@@ -32,6 +32,8 @@ opentofu-development-validate:
|
|
|
32
32
|
stage: test
|
|
33
33
|
image: "registry.gitlab.com/components/opentofu/gitlab-opentofu:latest"
|
|
34
34
|
variables:
|
|
35
|
+
OPENTOFU_ROOT: "${CI_PROJECT_DIR}/deploy/${OPENTOFU_STATE_NAME}"
|
|
36
|
+
OPENTOFU_STATE_NAME: development
|
|
35
37
|
GIT_DEPTH: "1"
|
|
36
38
|
TF_STATE_NAME: "$OPENTOFU_STATE_NAME"
|
|
37
39
|
TF_ROOT: "$OPENTOFU_ROOT"
|
|
@@ -32,6 +32,8 @@ opentofu-production-apply:
|
|
|
32
32
|
stage: deploy
|
|
33
33
|
image: "registry.gitlab.com/components/opentofu/gitlab-opentofu:latest"
|
|
34
34
|
variables:
|
|
35
|
+
OPENTOFU_ROOT: "${CI_PROJECT_DIR}/deploy/${OPENTOFU_STATE_NAME}"
|
|
36
|
+
OPENTOFU_STATE_NAME: production
|
|
35
37
|
GIT_DEPTH: "1"
|
|
36
38
|
TF_STATE_NAME: "$OPENTOFU_STATE_NAME"
|
|
37
39
|
TF_ROOT: "$OPENTOFU_ROOT"
|
|
@@ -32,6 +32,8 @@ opentofu-production-auto-apply:
|
|
|
32
32
|
stage: deploy
|
|
33
33
|
image: "registry.gitlab.com/components/opentofu/gitlab-opentofu:latest"
|
|
34
34
|
variables:
|
|
35
|
+
OPENTOFU_ROOT: "${CI_PROJECT_DIR}/deploy/${OPENTOFU_STATE_NAME}"
|
|
36
|
+
OPENTOFU_STATE_NAME: production
|
|
35
37
|
GIT_DEPTH: "1"
|
|
36
38
|
TF_STATE_NAME: "$OPENTOFU_STATE_NAME"
|
|
37
39
|
TF_ROOT: "$OPENTOFU_ROOT"
|
|
@@ -32,6 +32,8 @@ opentofu-production-destroy:
|
|
|
32
32
|
stage: deploy
|
|
33
33
|
image: "registry.gitlab.com/components/opentofu/gitlab-opentofu:latest"
|
|
34
34
|
variables:
|
|
35
|
+
OPENTOFU_ROOT: "${CI_PROJECT_DIR}/deploy/${OPENTOFU_STATE_NAME}"
|
|
36
|
+
OPENTOFU_STATE_NAME: production
|
|
35
37
|
GIT_DEPTH: "1"
|
|
36
38
|
TF_STATE_NAME: "$OPENTOFU_STATE_NAME"
|
|
37
39
|
TF_ROOT: "$OPENTOFU_ROOT"
|
|
@@ -32,6 +32,8 @@ opentofu-production-plan:
|
|
|
32
32
|
stage: test
|
|
33
33
|
image: "registry.gitlab.com/components/opentofu/gitlab-opentofu:latest"
|
|
34
34
|
variables:
|
|
35
|
+
OPENTOFU_ROOT: "${CI_PROJECT_DIR}/deploy/${OPENTOFU_STATE_NAME}"
|
|
36
|
+
OPENTOFU_STATE_NAME: production
|
|
35
37
|
GIT_DEPTH: "1"
|
|
36
38
|
TF_STATE_NAME: "$OPENTOFU_STATE_NAME"
|
|
37
39
|
TF_ROOT: "$OPENTOFU_ROOT"
|
|
@@ -32,6 +32,8 @@ opentofu-production-trivy:
|
|
|
32
32
|
stage: build
|
|
33
33
|
image: "registry.gitlab.com/components/opentofu/gitlab-opentofu:latest"
|
|
34
34
|
variables:
|
|
35
|
+
OPENTOFU_ROOT: "${CI_PROJECT_DIR}/deploy/${OPENTOFU_STATE_NAME}"
|
|
36
|
+
OPENTOFU_STATE_NAME: production
|
|
35
37
|
GIT_DEPTH: "1"
|
|
36
38
|
TF_STATE_NAME: "$OPENTOFU_STATE_NAME"
|
|
37
39
|
TF_ROOT: "$OPENTOFU_ROOT"
|
|
@@ -32,6 +32,8 @@ opentofu-production-validate:
|
|
|
32
32
|
stage: test
|
|
33
33
|
image: "registry.gitlab.com/components/opentofu/gitlab-opentofu:latest"
|
|
34
34
|
variables:
|
|
35
|
+
OPENTOFU_ROOT: "${CI_PROJECT_DIR}/deploy/${OPENTOFU_STATE_NAME}"
|
|
36
|
+
OPENTOFU_STATE_NAME: production
|
|
35
37
|
GIT_DEPTH: "1"
|
|
36
38
|
TF_STATE_NAME: "$OPENTOFU_STATE_NAME"
|
|
37
39
|
TF_ROOT: "$OPENTOFU_ROOT"
|
{cici_tools-0.16.1 → cici_tools-0.17.1}/tests/fixtures/gitlab/targets-dir/opentofu-staging-apply.yml
RENAMED
|
@@ -32,6 +32,8 @@ opentofu-staging-apply:
|
|
|
32
32
|
stage: deploy
|
|
33
33
|
image: "registry.gitlab.com/components/opentofu/gitlab-opentofu:latest"
|
|
34
34
|
variables:
|
|
35
|
+
OPENTOFU_ROOT: "${CI_PROJECT_DIR}/deploy/${OPENTOFU_STATE_NAME}"
|
|
36
|
+
OPENTOFU_STATE_NAME: staging
|
|
35
37
|
GIT_DEPTH: "1"
|
|
36
38
|
TF_STATE_NAME: "$OPENTOFU_STATE_NAME"
|
|
37
39
|
TF_ROOT: "$OPENTOFU_ROOT"
|
|
@@ -32,6 +32,8 @@ opentofu-staging-auto-apply:
|
|
|
32
32
|
stage: deploy
|
|
33
33
|
image: "registry.gitlab.com/components/opentofu/gitlab-opentofu:latest"
|
|
34
34
|
variables:
|
|
35
|
+
OPENTOFU_ROOT: "${CI_PROJECT_DIR}/deploy/${OPENTOFU_STATE_NAME}"
|
|
36
|
+
OPENTOFU_STATE_NAME: staging
|
|
35
37
|
GIT_DEPTH: "1"
|
|
36
38
|
TF_STATE_NAME: "$OPENTOFU_STATE_NAME"
|
|
37
39
|
TF_ROOT: "$OPENTOFU_ROOT"
|
|
@@ -32,6 +32,8 @@ opentofu-staging-destroy:
|
|
|
32
32
|
stage: deploy
|
|
33
33
|
image: "registry.gitlab.com/components/opentofu/gitlab-opentofu:latest"
|
|
34
34
|
variables:
|
|
35
|
+
OPENTOFU_ROOT: "${CI_PROJECT_DIR}/deploy/${OPENTOFU_STATE_NAME}"
|
|
36
|
+
OPENTOFU_STATE_NAME: staging
|
|
35
37
|
GIT_DEPTH: "1"
|
|
36
38
|
TF_STATE_NAME: "$OPENTOFU_STATE_NAME"
|
|
37
39
|
TF_ROOT: "$OPENTOFU_ROOT"
|
|
@@ -32,6 +32,8 @@ opentofu-staging-plan:
|
|
|
32
32
|
stage: test
|
|
33
33
|
image: "registry.gitlab.com/components/opentofu/gitlab-opentofu:latest"
|
|
34
34
|
variables:
|
|
35
|
+
OPENTOFU_ROOT: "${CI_PROJECT_DIR}/deploy/${OPENTOFU_STATE_NAME}"
|
|
36
|
+
OPENTOFU_STATE_NAME: staging
|
|
35
37
|
GIT_DEPTH: "1"
|
|
36
38
|
TF_STATE_NAME: "$OPENTOFU_STATE_NAME"
|
|
37
39
|
TF_ROOT: "$OPENTOFU_ROOT"
|
|
@@ -32,6 +32,8 @@ opentofu-staging-trivy:
|
|
|
32
32
|
stage: build
|
|
33
33
|
image: "registry.gitlab.com/components/opentofu/gitlab-opentofu:latest"
|
|
34
34
|
variables:
|
|
35
|
+
OPENTOFU_ROOT: "${CI_PROJECT_DIR}/deploy/${OPENTOFU_STATE_NAME}"
|
|
36
|
+
OPENTOFU_STATE_NAME: staging
|
|
35
37
|
GIT_DEPTH: "1"
|
|
36
38
|
TF_STATE_NAME: "$OPENTOFU_STATE_NAME"
|
|
37
39
|
TF_ROOT: "$OPENTOFU_ROOT"
|
|
@@ -32,6 +32,8 @@ opentofu-staging-validate:
|
|
|
32
32
|
stage: test
|
|
33
33
|
image: "registry.gitlab.com/components/opentofu/gitlab-opentofu:latest"
|
|
34
34
|
variables:
|
|
35
|
+
OPENTOFU_ROOT: "${CI_PROJECT_DIR}/deploy/${OPENTOFU_STATE_NAME}"
|
|
36
|
+
OPENTOFU_STATE_NAME: staging
|
|
35
37
|
GIT_DEPTH: "1"
|
|
36
38
|
TF_STATE_NAME: "$OPENTOFU_STATE_NAME"
|
|
37
39
|
TF_ROOT: "$OPENTOFU_ROOT"
|