diff --git a/faas-cli/Dockerfile b/faas-cli/Dockerfile index c091aa6..811cd44 100644 --- a/faas-cli/Dockerfile +++ b/faas-cli/Dockerfile @@ -1,4 +1,5 @@ -FROM docker:20.10.10-dind +FROM docker:23.0.4-dind +ARG VERSION -RUN wget https://github.com/openfaas/faas-cli/releases/download/0.13.13/faas-cli -O /usr/local/bin/faas-cli +RUN wget https://github.com/openfaas/faas-cli/releases/download/${VERSION}/faas-cli -O /usr/local/bin/faas-cli RUN chmod +x /usr/local/bin/faas-cli diff --git a/faas-cli/Makefile b/faas-cli/Makefile index 2a6c587..3e899a6 100644 --- a/faas-cli/Makefile +++ b/faas-cli/Makefile @@ -1,11 +1,11 @@ -VERSION=0.13.13 +VERSION=0.16.7 IMAGE=faas-cli REGISTRY=gitea.geekhome.org/ghp .PHONY: build push all build: - docker build -t $(REGISTRY)/$(IMAGE):$(VERSION) . + docker build --build-arg="VERSION=$(VERSION)" -t $(REGISTRY)/$(IMAGE):$(VERSION) . push: docker push $(REGISTRY)/$(IMAGE):$(VERSION)