-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile
46 lines (37 loc) · 1.28 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
37
38
39
40
41
42
43
44
45
46
DENOPS_VERSION := main
DOCKER_TAG := latest
DOCKER_REGISTRY := ghcr.io/vim-denops
.DEFAULT_GOAL := help
help:
@cat $(MAKEFILE_LIST) | \
perl -ne 'print if /^\w+.*##/;' | \
perl -pe 's/(.*):.*##\s*/sprintf("%-20s",$$1)/eg;'
build: build-vim build-neovim ## Build
build-vim: FORCE ## Build (Vim)
docker buildx build ${BUILD_ARGS} \
--load \
--cache-from=${DOCKER_REGISTRY}/vim/cache \
--cache-from=${DOCKER_REGISTRY}/vim \
--cache-to=type=registry,ref=${DOCKER_REGISTRY}/vim/cache,mode=max \
--build-arg DENOPS_VERSION=${DENOPS_VERSION} \
--platform linux/amd64,linux/arm64 \
-t ${DOCKER_REGISTRY}/vim:${DOCKER_TAG} \
-f dockerfiles/vim \
.
build-neovim: FORCE ## Build (Neovim)
docker buildx build ${BUILD_ARGS} \
--load \
--cache-from=${DOCKER_REGISTRY}/neovim/cache \
--cache-from=${DOCKER_REGISTRY}/neovim \
--cache-to=type=registry,ref=${DOCKER_REGISTRY}/neovim/cache,mode=max \
--build-arg DENOPS_VERSION=${DENOPS_VERSION} \
--platform linux/amd64,linux/arm64 \
-t ${DOCKER_REGISTRY}/neovim:${DOCKER_TAG} \
-f dockerfiles/neovim \
.
push: push-vim push-neovim ## Push
push-vim: FORCE ## Push (Vim)
docker push ${DOCKER_REGISTRY}/vim:${DOCKER_TAG}
push-neovim: FORCE ## Push (Neovim)
docker push ${DOCKER_REGISTRY}/neovim:${DOCKER_TAG}
FORCE: