File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -158,6 +158,8 @@ jobs:
158
158
uses : docker/setup-buildx-action@v2
159
159
- name : Build images
160
160
run : make images
161
+ env :
162
+ XBUILD_OPTIONS : --load
161
163
- name : Export images
162
164
run : docker save spire-server:latest-local spire-agent:latest-local k8s-workload-registrar:latest-local oidc-discovery-provider:latest-local | gzip > images.tar.gz
163
165
- name : Archive images
@@ -218,6 +220,8 @@ jobs:
218
220
uses : docker/setup-buildx-action@v2
219
221
- name : Build scratch images
220
222
run : make scratch-images
223
+ env :
224
+ XBUILD_OPTIONS : --load
221
225
- name : Export scratch images
222
226
run : docker save spire-server-scratch:latest-local spire-agent-scratch:latest-local k8s-workload-registrar-scratch:latest-local oidc-discovery-provider-scratch:latest-local | gzip > scratch-images.tar.gz
223
227
- name : Archive scratch images
@@ -254,6 +258,8 @@ jobs:
254
258
uses : docker/setup-buildx-action@v2
255
259
- name : Build static images
256
260
run : make static-images
261
+ env :
262
+ XBUILD_OPTIONS : --load
257
263
- name : Export static images
258
264
run : docker save spire-server-static:latest-local spire-agent-static:latest-local k8s-workload-registrar-static:latest-local oidc-discovery-provider-static:latest-local | gzip > static-images.tar.gz
259
265
- name : Archive static images
Original file line number Diff line number Diff line change @@ -114,6 +114,7 @@ endif
114
114
115
115
PLATFORMS ?= linux/amd64,linux/arm64/v7,linux/arm64/v8
116
116
DOCKERFILE := Dockerfile
117
+ XBUILD_OPTIONS ?=
117
118
118
119
build_dir := $(DIR ) /.build/$(os1 ) -$(arch1 )
119
120
@@ -343,6 +344,7 @@ docker-buildx: container-builder
343
344
--build-arg goversion=$(go_version_full ) \
344
345
--target $(COMPONENT ) \
345
346
-t $(COMPONENT ) \
347
+ $(XBUILD_OPTIONS ) \
346
348
.
347
349
$(E ) docker tag $(COMPONENT ) :latest $(COMPONENT ) :latest-local
348
350
You can’t perform that action at this time.
0 commit comments