shell_scripts
create_cache_script(pr_num, docker_registry)
¶
Create a script to retrieve cache for an image.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
pr_num |
str
|
The pull request number where to pull the cache from. |
required |
docker_registry |
str
|
The docker registry where the images are located. |
required |
Returns:
Type | Description |
---|---|
str
|
A script to find the cache. |
Source code in m/ci/docker/shell_scripts.py
create_push_script(docker_registry)
¶
create_push_script_tags(docker_registry, m_tag)
¶
Create a script to push an image.
This is meant to be used when building for a single architecture.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
docker_registry |
str
|
The docker registry where the images will be pushed. |
required |
m_tag |
str
|
The unique tag for the image. |
required |
Returns:
Type | Description |
---|---|
str
|
A script to push an image. |