...
1set shell := ["/bin/bash", "-c"]
2
3registry := "registry.k8s.io"
4version := "3.5.17-0"
5crane := "bazel run @com_github_google_go_containerregistry//cmd/crane --"
6
7update:
8 echo '"""etcd image"""' > digests.bzl.tmp
9 printf "ETCD_VERSION = \"{{version}}\"\n" >> digests.bzl.tmp
10 printf "ETCD_REGISTRY = \"{{registry}}\"\n" >> digests.bzl.tmp
11
12 echo Update etcd image {{version}}
13 set -ex;\
14 printf "ETCD_DIGEST = \"$({{crane}} digest --platform=linux/amd64 {{registry}}/etcd:{{version}})\"\n" >> digests.bzl.tmp; \
15 mv -v digests.bzl.tmp digests.bzl
View as plain text