This repository was archived by the owner on Aug 4, 2023. It is now read-only.
Added
- Added
gcip.addon.container.job.trivy.scan_local_imageto scan local container images of vulnerabilities. - Added set_config_file_path method to DockerClientConfig.
- Return own instance on each method call for DockerClientConfig instances.
- Added Registry class to
gcip.addons.container.registrymodule. It contains constants of Container registries. - Added
gcip.core.sequence.Sequence.initialize_artifacts_paths()andgcip.core.sequence.Sequence.override_artifacts_paths(). - Added defaulting to git tag or git branch for image_tag in
crane.push. - Added default
DockerClientConfigincrane.push - Added
|teeto getdiveoutput to stdout and to dive.txt. Updload dive.txt to GitLab artifacts store. - Added
|teeto gettrivyoutput to stdout and to trivy.txt. Updload trivy.txt to GitLab artifacts store. - Added new container sequence. Container sequence build, scans and pushes an container image.
- Added full API documentation of the
gcip.core.jobmodule. - Added full API documentation of the
gcip.core.pipelinemodule. - Added full API documentation of the
gcip.core.imagemodule. - Added full API documentation of the
gcip.core.includemodule. - Added documentation to the
gcip.core.variablesmodule. - Added @properties to all public Job attributes.
- New addons: aws to allow receiving AWS account id and region.
- New
gcip.addons.container.registries.Registry.AWS()allows getting an ECR URL to be used in pipeline. - Added
crane.pull()function togcip.addons.container.crane. - Added new gcip.addons.security.sops module and added sops_export_decrypted_values function to sops module.
Changed
- Normalize config_file_path in
gcip.addons.container.config.DockerClientConfig - Line length check in flake8 linter to 160.
- BREAKING Removed arguments from DockerClientConfig constructor to set config file path, use
set_config_file_pathof DockerClientConfig instance. - BREAKING Removed custom docker client config from kaniko job.
Added DockerClientConfig as a optional client configuration to kaniko job.
Simplyfied function and sorted initialisation tests an actuall composing of job. - BREAKING Removed custom docker client config from kaniko job.
Added DockerClientConfig as a optional client configuration to kaniko job.
Simplyfied function and sorted initialisation tests an actuall composing of job. - BREAKING Moved all function arguments of
crane.pushfunction to be keyword arguments. - BREAKING Renamed
dsttodst_registryincrane.pushfunction. - BREAKING Renamed
image_pathtotar_pathkeyword argument to aligne with kaniko module. - BREAKING Renamed
dstandsrctodst_registryandsrc_registry. - BREAKING
dive: Replace "/" with "_" in image_name. Image names contains namespaces which are separated by "/" to ensure image name is a file instead of a directory structure. - BREAKING
trivy: Replace "/" with "_" in image_name. Image names contains namespaces which are separated by "/" to ensure image name is a file instead of a directory structure. - BREAKING Renamed
gitlab_executor_imagetokaniko_imageinkaniko.execute(). Moved argument to last argument in function signature. kaniko: Replaced "/" with "_" to convert image namspaces to filename instead of directory structure assigne it to image_path.core.cache: Changed PredefinedVariable from CI_PROJECT_PATH to CI_PROJECT_DIR to ensure its the directory instead of the "namespace" of the git repository.- BREAKING Changed docker hub registry entry in
Registryclass. - BREAKING Renamed all occurences of
namespacetostage. Because 'stage' is what the current 'stage' really expresses. You could try following commands to align your
gcip code with this breaking change:LC_ALL=C find . -type f ! -path './.git/*' ! -path '*/__pycache__/*' -exec sed -i '' s/Stage/Stage/g {} + LC_ALL=C find . -type f ! -path './.git/*' ! -path '*/__pycache__/*' -exec sed -i '' s/stage/stage/g {} +
Removed
- Removed
datecall from dive job. - Removed
gcip.core.pipeline.Pipeline.dump_yaml()method. There is no need to print a pipeline to stdout. You should usegcip.core.pipeline.Pipeline.write_yaml()instead. - Removed
-vflag from fromgcp.addons.python.jobs.pip_install_requirements()
Fixed
- Several linter issues has been fixed
- Fixed kaniko build in gitlabci-local.sh
- Kankio job's tar_path behavior fixed. If you specified tar_path in
kaniko.execute(), thetar_pathwas added to the same line as the executor. Now it gets added to a item bevorexecute. - Fixed PredefinedImages entrypoints for GitLab CI runner.
- Fixed crane image,
latestimage does not haveshavailable. Usingdebugtag.