mirror of https://github.com/k3s-io/k3s
Update webhook test image to multi-arch
parent
e4465b6e2f
commit
1013fe98c2
|
@ -0,0 +1,4 @@
|
||||||
|
amd64=alpine:3.6
|
||||||
|
arm=arm32v6/alpine:3.6
|
||||||
|
arm64=arm64v8/alpine:3.6
|
||||||
|
ppc64le=ppc64le/alpine:3.6
|
|
@ -12,7 +12,7 @@
|
||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
FROM alpine:latest
|
FROM BASEIMAGE
|
||||||
|
|
||||||
ADD webhook /webhook
|
ADD webhook /webhook
|
||||||
ENTRYPOINT ["/webhook"]
|
ENTRYPOINT ["/webhook"]
|
||||||
|
|
|
@ -12,12 +12,14 @@
|
||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
IMAGE = gcr.io/kubernetes-e2e-test-images/k8s-sample-admission-webhook-amd64
|
SRCS=webhook
|
||||||
TAG = 1.10v2
|
ARCH ?= amd64
|
||||||
|
TARGET ?= $(CURDIR)
|
||||||
|
GOLANG_VERSION ?= latest
|
||||||
|
SRC_DIR = $(notdir $(shell pwd))
|
||||||
|
export
|
||||||
|
|
||||||
build:
|
bin:
|
||||||
CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o webhook .
|
../image-util.sh bin $(SRCS)
|
||||||
docker build --no-cache -t $(IMAGE):$(TAG) .
|
|
||||||
rm -rf webhook
|
.PHONY: bin
|
||||||
push:
|
|
||||||
docker push $(IMAGE):$(TAG)
|
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
1.10v2
|
Loading…
Reference in New Issue