-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathBUILD.bazel
57 lines (50 loc) · 1.27 KB
/
BUILD.bazel
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
package(default_visibility = ["//:__subpackages__"])
load("@io_bazel_rules_docker//container:container.bzl", "container_image", "container_push")
load("@io_bazel_rules_docker//docker/util:run.bzl", "container_run_and_commit_layer")
exports_files([
"tsconfig.json",
"rollup.config.js",
"rollup_browser.config.ts",
".gitignore"], visibility = ["//:__subpackages__"])
# Remove `bazel` as the entry point so shell commands can be run.
container_image(
name = "bazel_base",
base = "@bazel_image//image",
cmd = "",
entrypoint = "",
tags = [
"noci"
],
)
container_run_and_commit_layer(
name = "bazel_webtesting_layer",
commands = [
"apt update",
"apt install -y unzip libnss3 libxss1 libatk-bridge2.0-0 libgtk-3-0",
],
image = ":bazel_base.tar",
tags = [
"noci"
],
)
container_image(
name = "bazel_webtesting_image",
base = "@bazel_image//image",
layers = [
":bazel_webtesting_layer",
],
tags = [
"noci"
],
)
container_push(
name = "push_bazel_webtesting_image",
image = ":bazel_webtesting_image",
format = "Docker",
registry = "gcr.io",
repository = "novajs-303605/bazel_webtesting",
tag = "latest",
tags = [
"noci"
],
)