github.com/GoogleContainerTools/skaffold/v2@v2.13.2/integration/testdata/bazel-rules-oci/WORKSPACE (about)

     1  load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
     2  
     3  http_archive(
     4      name = "rules_oci",
     5      sha256 = "db57efd706f01eb3ce771468366baa1614b5b25f4cce99757e2b8d942155b8ec",
     6      strip_prefix = "rules_oci-1.0.0",
     7      url = "https://github.com/bazel-contrib/rules_oci/releases/download/v1.0.0/rules_oci-v1.0.0.tar.gz",
     8  )
     9  
    10  load("@rules_oci//oci:dependencies.bzl", "rules_oci_dependencies")
    11  
    12  rules_oci_dependencies()
    13  
    14  load("@rules_oci//oci:repositories.bzl", "LATEST_CRANE_VERSION", "LATEST_ZOT_VERSION", "oci_register_toolchains")
    15  
    16  oci_register_toolchains(
    17      name = "oci",
    18      crane_version = LATEST_CRANE_VERSION,
    19      # Uncommenting the zot toolchain will cause it to be used instead of crane for some tasks.
    20      # Note that it does not support docker-format images.
    21      # zot_version = LATEST_ZOT_VERSION,
    22  )
    23  
    24  load("@rules_oci//oci:pull.bzl", "oci_pull")
    25  
    26  oci_pull(
    27      name = "hello",
    28      digest = "sha256:845f77fab71033404f4cfceaa1ddb27b70c3551ceb22a5e7f4498cdda6c9daea",
    29      image = "us-docker.pkg.dev/google-samples/containers/gke/hello-app",
    30  )