Skip to content

Commit

Permalink
Improve the development pipeline using Skaffold.
Browse files Browse the repository at this point in the history
  • Loading branch information
wi1dcard committed Jul 10, 2020
1 parent bd1a194 commit a6e382d
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -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)
Expand All @@ -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}}" \
Expand Down
14 changes: 14 additions & 0 deletions skaffold.yaml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit a6e382d

Please sign in to comment.