-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: Fix the Bazel integration test. (#9604)
Bazel just released version 8.0.0 which uses a MODULE.bazel file instead of a WORKSPACE file. See https://bazel.build/external/migration I also updated to a new version of rules_oci that supports this new MODULE.bazel.
- Loading branch information
Showing
4 changed files
with
32 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,13 @@ | ||
load("@rules_oci//oci:defs.bzl", "oci_tarball") | ||
load("@rules_oci//oci:defs.bzl", "oci_load") | ||
|
||
oci_tarball( | ||
name = "hello.tar", | ||
oci_load( | ||
name = "hello", | ||
image = "@hello//:hello", | ||
repo_tags = ["hello:latest"], | ||
) | ||
|
||
filegroup( | ||
name = "hello.tar", | ||
srcs = [":hello"], | ||
output_group = "tarball", | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
bazel_dep(name = "rules_oci", version = "2.0.1") | ||
|
||
oci = use_extension("@rules_oci//oci:extensions.bzl", "oci") | ||
|
||
# Declare external images you need to pull, for example: | ||
oci.pull( | ||
name = "hello", | ||
digest = "sha256:b510f29de2dfd80b88f7cd569db177a514117081bc8825eb64e423bd3db0fe64", | ||
image = "us-docker.pkg.dev/google-samples/containers/gke/hello-app", | ||
) | ||
|
||
# For each oci.pull call, repeat the "name" here to expose them as dependencies. | ||
use_repo(oci, "hello") |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,13 @@ | ||
load("@rules_oci//oci:defs.bzl", "oci_tarball") | ||
load("@rules_oci//oci:defs.bzl", "oci_load") | ||
|
||
oci_tarball( | ||
name = "hello.tar", | ||
oci_load( | ||
name = "hello", | ||
image = "@hello//:hello", | ||
repo_tags = ["hello-whatever:latest"], | ||
repo_tags = ["hello:latest"], | ||
) | ||
|
||
filegroup( | ||
name = "hello.tar", | ||
srcs = [":hello"], | ||
output_group = "tarball", | ||
) |