blob: 965c100c053e27d0479c342a15dac4624cf69232 [file] [log] [blame]
Tim Windelschmidt0974b222024-01-16 14:04:15 +01001load("@bazel_skylib//rules:write_file.bzl", "write_file")
Tim Windelschmidt1fdab132023-03-30 15:04:16 +02002
Tim Windelschmidt0974b222024-01-16 14:04:15 +01003write_file(
4 name = "tags_tmpl",
5 out = "tags.txt.tmpl",
6 content = [
7 "BUILD_VERSION",
8 ],
Tim Windelschmidt1fdab132023-03-30 15:04:16 +02009)
10
Tim Windelschmidt0974b222024-01-16 14:04:15 +010011load("@aspect_bazel_lib//lib:expand_template.bzl", "expand_template")
12
13# Use the value of --embed_label under --stamp, otherwise use a deterministic constant
14# value to ensure cache hits for actions that depend on this.
15expand_template(
16 name = "stamped",
17 out = "_stamped.tags.txt",
18 stamp_substitutions = {"BUILD_VERSION": "{{STABLE_MONOGON_cloud_version}}"},
19 substitutions = {"BUILD_VERSION": "0.0.0"},
20 template = "tags_tmpl",
21)
22
23load("@rules_oci//oci:defs.bzl", "oci_push")
24
25oci_push(
26 name = "apigw_image",
27 image = "//cloud/apigw:apigw_image",
28 remote_tags = ":stamped",
29 repository = "gcr.io/monogon-infra/cloud/apigw",
30)
31
32oci_push(
33 name = "shepherd_equinix",
34 image = "//cloud/shepherd/provider/equinix:equinix_image",
35 remote_tags = ":stamped",
36 repository = "gcr.io/monogon-infra/cloud/shepherd/equinix",
37)
38
39oci_push(
40 name = "bmsrv",
41 image = "//cloud/bmaas/server/cmd:cmd_image",
42 remote_tags = ":stamped",
43 repository = "gcr.io/monogon-infra/cloud/bmsrv",
44)
45
46oci_push(
47 name = "scruffy",
48 image = "//cloud/bmaas/scruffy/cmd:cmd_image",
49 remote_tags = ":stamped",
50 repository = "gcr.io/monogon-infra/cloud/scruffy",
51)
52
53oci_push(
54 name = "shepherd_mini",
55 image = "//cloud/shepherd/mini:mini_image",
56 remote_tags = ":stamped",
57 repository = "gcr.io/monogon-infra/cloud/shepherd/mini",
Tim Windelschmidt1fdab132023-03-30 15:04:16 +020058)