-
Notifications
You must be signed in to change notification settings - Fork 0
/
docs.mk
33 lines (23 loc) · 866 Bytes
/
docs.mk
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
DOCKER_REPOSITORY = ghcr.io/
STORYBOOK_DOCKERFILE := ./infra/docker/storybook/Dockerfile
STORYBOOK_NAME := ${DOCKER_REPOSITORY}komune-io/im-storybook
STORYBOOK_IMG := ${STORYBOOK_NAME}:${VERSION}
STORYBOOK_LATEST := ${STORYBOOK_NAME}:latest
lint: lint-docker-storybook
build: build-storybook
test:
echo 'No Test'
package: package-storybook push-storybook
# Storybook
build-storybook:
@yarn --cwd storybook install --frozen-lockfile --ignore-scripts
@yarn --cwd storybook build-storybook
lint-docker-storybook:
@docker run --rm -i hadolint/hadolint hadolint - < ${STORYBOOK_DOCKERFILE}
package-storybook:
@docker build --no-cache --platform=linux/amd64 \
--build-arg NPM_AUTH_TOKEN=${NPM_AUTH_TOKEN} \
-f ${STORYBOOK_DOCKERFILE} \
-t ${STORYBOOK_IMG} .
push-storybook:
@docker push ${STORYBOOK_IMG}