| giolekva | 56c1569 | 2021-10-20 11:44:54 +0400 | [diff] [blame] | 1 | clean: |
| 2 | rm -f capture-config | ||||
| 3 | |||||
| 4 | build: clean | ||||
| 5 | go build -o capture-config *.go | ||||
| 6 | |||||
| 7 | image: build | ||||
| 8 | docker build --tag=giolekva/capture-config:latest . | ||||
| 9 | |||||
| 10 | push: image | ||||
| 11 | docker push giolekva/capture-config:latest | ||||
| 12 | |||||
| 13 | push_arm64: export GOOS=linux | ||||
| 14 | push_arm64: export GOARCH=arm64 | ||||
| 15 | push_arm64: export CGO_ENABLED=0 | ||||
| 16 | push_arm64: export GO111MODULE=on | ||||
| 17 | push_arm64: push | ||||