...
1load("@rules_apko//apko:defs.bzl", "apko_image")
2load("@rules_oci//oci:defs.bzl", "oci_image")
3load("@rules_pkg//:pkg.bzl", "pkg_tar")
4load("//hack/build/rules/container:index.bzl", "container_push")
5
6oci_image(
7 name = "admission_tls_generate_image",
8 base = ":init-base",
9 entrypoint = [
10 "/usr/bin/dash",
11 "/root/generate-tls.sh",
12 ],
13 tags = [
14 "manual",
15 "no-remote-cache",
16 ],
17 tars = [":tls_script"],
18)
19
20apko_image(
21 name = "init-base",
22 config = "apko.yaml",
23 contents = "@admission_init_lock//:contents",
24 tag = "admission-init:latest",
25 tags = ["requires-network"],
26)
27
28pkg_tar(
29 name = "tls_script",
30 extension = "tgz",
31 files = {
32 ":generate-tls-in.sh": "/root/generate-tls.sh",
33 },
34 mode = "755",
35 tags = [
36 "manual",
37 "no-remote-cache",
38 ],
39)
40
41container_push(
42 name = "container_push",
43 image = ":admission_tls_generate_image",
44 image_name = "admission_tls_generate",
45 repository_file = "//hack/build/rules/container:workloads-repo",
46)
View as plain text