File tree Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change 1
1
PROJECT_ROOT := $(shell git rev-parse --show-toplevel)
2
2
GO_FILES := $(shell git ls-files '* .go' '* .sum')
3
3
IMAGE_FILES := $(shell find deploy)
4
- ARCH ?= linux/amd64
5
- SYSBOX_SHA ?= f02ffb48eae99d6c884c9aa0378070cc716d028f58e87deec5ae00a41b706fe8
4
+ ARCH := " linux/$( shell go env GOARCH) "
5
+ SYSBOX_SHA := $( shell ARCH= $( ARCH ) ./scripts/sysbox_sha.sh)
6
6
7
7
.PHONY : clean
8
8
clean :
9
9
rm -rf build
10
10
11
11
build/envbox : $(GO_FILES )
12
- CGO_ENABLED=0 go build -o build/envbox ./cmd/envbox
12
+ CGO_ENABLED=0 GOOS=linux go build -o build/envbox ./cmd/envbox
13
13
14
14
.PHONY : build/image/envbox
15
15
build/image/envbox : build/image/envbox/.ctx
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+
3
+ declare -A sysbox_shas
4
+ sysbox_shas[" linux/amd64" ]=" f02ffb48eae99d6c884c9aa0378070cc716d028f58e87deec5ae00a41b706fe8"
5
+ sysbox_shas[" linux/arm64" ]=" d9267eb176190b96dcfa29ba4c4c685a26a4a1aca1d7f15deb31ec33ed63de15"
6
+
7
+ ARCH=" ${ARCH:- linux/ amd64} "
8
+ printf " %s" " ${sysbox_shas[$ARCH]} "
You can’t perform that action at this time.
0 commit comments