-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
36 lines (27 loc) · 1.26 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
check:
golangci-lint run -v
check-fix:
golangci-lint run --fix
docker-build: build-kob-library-parser
build-kob-library-parser:
DOCKER_BUILDKIT=1 docker --log-level=debug build --pull --build-arg BUILDKIT_INLINE_CACHE=1 \
--target builder \
--cache-from ${REGISTRY}/kob-library-parser:cache-builder \
--tag ${REGISTRY}/kob-library-parser:cache-builder \
--file ./docker/kob/Dockerfile .
DOCKER_BUILDKIT=1 docker --log-level=debug build --pull --build-arg BUILDKIT_INLINE_CACHE=1 \
--cache-from ${REGISTRY}/kob-library-parser:cache-builder \
--cache-from ${REGISTRY}/kob-library-parser:cache \
--tag ${REGISTRY}/kob-library-parser:cache \
--tag ${REGISTRY}/kob-library-parser:${IMAGE_TAG} \
--file ./docker/kob/Dockerfile .
push-build-cache:
docker push ${REGISTRY}/kob-library-parsercache-builder
docker push ${REGISTRY}/kob-library-parser:cache
push:
docker push ${REGISTRY}/kob-library-parser:${IMAGE_TAG}
kob-library-build:
docker --log-level=debug build --pull --file=docker/kob/Dockerfile --tag=${REGISTRY}/kob-library-parser:${IMAGE_TAG} .
build-common-parser:
GOOS=windows GOARCH=amd64 go build -o ./build/book-parser.exe ./common/cmd/main.go
GOOS=linux GOARCH=amd64 go build -o ./build/book-parser.linux.amd64 ./common/cmd/main.go