-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
40 lines (29 loc) · 1.05 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
config ?= public
ifdef config
ifeq (,$(filter $(config),public private))
$(error Unknown configuration "$(config)")
endif
endif
ifeq ($(config),private)
IMAGE := ghcr.io/ponylang/library-documentation-action-v2-insiders
PACKAGE = "git+https://${MATERIAL_INSIDERS_ACCESS}@github.com/squidfunk/mkdocs-material-insiders.git"
else
IMAGE = ghcr.io/ponylang/library-documentation-action-v2
PACKAGE = "mkdocs-material"
endif
all: pylint
build:
docker build --pull --build-arg PACKAGE="${PACKAGE}" --build-arg FROM_TAG="${version}-alpine" -t "${IMAGE}:${version}" .
build-latest:
docker build --pull --build-arg PACKAGE="${PACKAGE}" --build-arg FROM_TAG="alpine" -t "${IMAGE}:latest" .
build-release:
docker build --pull --build-arg PACKAGE="${PACKAGE}" --build-arg FROM_TAG="release-alpine" -t "${IMAGE}:release" .
push:
docker push "${IMAGE}:${version}"
push-latest:
docker push "${IMAGE}:latest"
push-release:
docker push "${IMAGE}:release"
pylint: build-latest
docker run --entrypoint pylint --rm "${IMAGE}:latest" /entrypoint.py
.PHONY: build pylint