-
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add commitlint to the project, so that we can auto generate changelogs from now on.
- Loading branch information
Showing
5 changed files
with
40 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
FROM node:8.15.0 | ||
WORKDIR /src | ||
COPY package.json package-lock.json /src/ | ||
RUN npm ci | ||
COPY .git /src/.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
SHELL := /bin/bash | ||
|
||
CONTAINER_NAME = versioner | ||
|
||
.PHONY: help | ||
help: ## View help information | ||
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}' | ||
|
||
.PHONY: build | ||
build: ## Build the container to run our commands within a container | ||
docker build -t $(CONTAINER_NAME) -f ./Dockerfile . | ||
|
||
.PHONY: commitlint | ||
commitlint: build ## Verify that commits conform to our standard | ||
docker run \ | ||
$(CONTAINER_NAME) \ | ||
npm run commitlint |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
FROM docker:18.09.6 | ||
LABEL "com.github.actions.name"="Makefile runner" | ||
LABEL "com.github.actions.description"="A docker base image that can run make" | ||
LABEL "com.github.actions.icon"="code" | ||
LABEL "com.github.actions.color"="gray-dark" | ||
LABEL "maintainer"="abatilo" | ||
|
||
RUN apk add make=4.2.1-r2 bash=5.0.0-r0 | ||
COPY ./entrypoint.sh / | ||
ENTRYPOINT ["/entrypoint.sh"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#!/bin/sh | ||
sh -c "make $*" |