generated from bazel-contrib/rules-template
-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
example: add multi arch & repo example (#8)
Signed-off-by: thesayyn <thesayyn@gmail.com>
- Loading branch information
Showing
15 changed files
with
2,288 additions
and
1,093 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 |
---|---|---|
|
@@ -2,3 +2,4 @@ bazel-* | |
.bazelrc.user | ||
.idea/ | ||
.ijwb/ | ||
.DS_Store |
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
Large diffs are not rendered by default.
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
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
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,21 @@ | ||
load("@rules_apko//apko:defs.bzl", "apko_image") | ||
load("@container_structure_test//:defs.bzl", "container_structure_test") | ||
|
||
# An example demonstrating how to use multi architecture alpine packages with a lock file. | ||
# See MODULE.bazel for how apko.lock.json is translated to @examples_multi_arch_and_repo//:contents | ||
apko_image( | ||
name = "image", | ||
architecture = select({ | ||
"@platforms//cpu:arm64": "arm64", | ||
"@platforms//cpu:x86_64": "amd64", | ||
}), | ||
config = "apko.yaml", | ||
contents = "@examples_multi_arch_and_repo//:contents", | ||
tag = "multi_arch_and_repo:latest", | ||
) | ||
|
||
container_structure_test( | ||
name = "test", | ||
configs = ["test.yaml"], | ||
image = ":image", | ||
) |
Oops, something went wrong.