oras_add_platform_archive()
def oras_add_platform_archive(name, url, artifact, tag, add_prefix, globs, visibility)Checks out an archive using oras.
Args
name: string: Name of the rule.url: string: The URL of the oras archive to download.artifact: string: The artifact name of the oras archive (platform will be appended to artifact name)tag: string: The tag of the oras archive.add_prefix: string: The prefix to add to the archive.globs: List of globs to include/exclude.visibility: Rule visibility. See visibility.star for more info.
oras_add_publish_archive()
def oras_add_publish_archive(name, url, artifact, tag, input, deps, deploy_repo, layer_info, suffix, visibility)Publishes an archive using oras.
Args
name: string: Name of the project to publish.url: string: The URL of the oras archive to publish.artifact: string: The artifact name of the oras archive.tag: string: The tag of the oras archive.input: string: The workspace path to the folder/file to archive and publish.deps: list: Dependencies for the archive.deploy_repo: The deploy repository to publish the archive to.layer_info: string: The layer info of the archive.suffix: string: The suffix of the archive file (tar.gz, tar.xz, tar.bz2, zip).visibility: Rule visibility. See visibility.star for more info.