diff --git a/Makefile b/Makefile index fe84353..db448d9 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,5 @@ +.PHONY: % + LAST_TAG = $(shell git describe --tags --abbrev=0 HEAD^) COMMIT = $(shell git rev-parse --short HEAD) FULL_COMMIT = $(shell git rev-parse HEAD) @@ -19,6 +21,9 @@ before_build: check_tag: test ! -z "${TAG}" +dev: + skaffold dev --port-forward --no-prune=false + build: check_tag gox -verbose \ -output "dist/{{.Dir}}_{{.OS}}_{{.Arch}}" \ diff --git a/skaffold.yaml b/skaffold.yaml new file mode 100644 index 0000000..896a7c4 --- /dev/null +++ b/skaffold.yaml @@ -0,0 +1,14 @@ +apiVersion: skaffold/v2beta5 +kind: Config +metadata: + name: v2ray-exporter +build: + artifacts: + - image: wi1dcard/v2ray-exporter + docker: + buildArgs: + ARCH: amd64 +deploy: + kustomize: + paths: + - k8s