File tree Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Original file line number Diff line number Diff line change 1+ # Run `make build` to generate dist/artifacts.json and dist/metadata.json
2+ # before running this Tiltfile.
3+ artifacts = read_json ('dist/artifacts.json' )
4+ metadata = read_json ('dist/metadata.json' )
5+
6+ goarch = metadata ['runtime' ]['goarch' ]
7+ for x in artifacts :
8+ if 'goarch' in x :
9+ if x ['goarch' ] == goarch :
10+ TARGETPLATFORM = "dist/build_{}" .format (x ['target' ])
11+ break
12+
113docker_build (
214 'ghcr.io/tinkerbell/cluster-api-provider-tinkerbell' ,
315 '.' ,
416 dockerfile = 'Dockerfile' ,
17+ build_args = {
18+ 'TARGETPLATFORM' : TARGETPLATFORM ,
19+ },
520)
621k8s_yaml (kustomize ('./config/default' ))
722default_registry ('ttl.sh/meohmy-dghentld' )
Original file line number Diff line number Diff line change 88 spec :
99 containers :
1010 # Change the value of image field below to your controller image URL
11- - image : ghcr.io/tinkerbell/cluster-api-provider-tinkerbell:v0.6.6
11+ - image : ghcr.io/tinkerbell/cluster-api-provider-tinkerbell:v0.6.7
1212 name : manager
You can’t perform that action at this time.
0 commit comments