You've already forked wakapi-readme-stats
.env file read with Make
This commit is contained in:
7
Makefile
7
Makefile
@@ -2,7 +2,8 @@
|
|||||||
.DEFAULT_GOAL = help
|
.DEFAULT_GOAL = help
|
||||||
SHELL = /bin/bash
|
SHELL = /bin/bash
|
||||||
|
|
||||||
PATH := venv/bin:node_modules/.bin:$(PATH)
|
ENV = .env.example
|
||||||
|
include $(ENV)
|
||||||
|
|
||||||
|
|
||||||
help:
|
help:
|
||||||
@@ -24,13 +25,13 @@ venv:
|
|||||||
|
|
||||||
run-locally: venv
|
run-locally: venv
|
||||||
@ # Run action locally
|
@ # Run action locally
|
||||||
source <(cat .env.example | sed 's/=/=/' | sed 's/^/export /') && python3 ./sources/main.py
|
python3 ./sources/main.py
|
||||||
.PHONY: run-locally
|
.PHONY: run-locally
|
||||||
|
|
||||||
run-container:
|
run-container:
|
||||||
@ # Run action in container
|
@ # Run action in container
|
||||||
docker build -t waka-readme-stats -f Dockerfile .
|
docker build -t waka-readme-stats -f Dockerfile .
|
||||||
docker run --env-file .env.example waka-readme-stats
|
docker run --env-file $(ENV) waka-readme-stats
|
||||||
.PHONY: run-container
|
.PHONY: run-container
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user