This repository has been archived by the owner on Aug 4, 2023. It is now read-only.
Added
- Added
gcip.addon.container.job.trivy.scan_local_image
to 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.registry
module. 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
DockerClientConfig
incrane.push
- Added
|tee
to getdive
output to stdout and to dive.txt. Updload dive.txt to GitLab artifacts store. - Added
|tee
to gettrivy
output 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.job
module. - Added full API documentation of the
gcip.core.pipeline
module. - Added full API documentation of the
gcip.core.image
module. - Added full API documentation of the
gcip.core.include
module. - Added documentation to the
gcip.core.variables
module. - 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_path
of 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.push
function to be keyword arguments. - BREAKING Renamed
dst
todst_registry
incrane.push
function. - BREAKING Renamed
image_path
totar_path
keyword argument to aligne with kaniko module. - BREAKING Renamed
dst
andsrc
todst_registry
andsrc_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_image
tokaniko_image
inkaniko.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
Registry
class. - BREAKING Renamed all occurences of
namespace
tostage
. 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
date
call 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
-v
flag 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_path
was 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,
latest
image does not havesh
available. Usingdebug
tag.