aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2022-05-01 13:35:46 -0700
committerFranck Cuny <franck@fcuny.net>2022-05-01 13:35:46 -0700
commit9611638734d9fa9742c399839c34a35164dd3ba4 (patch)
tree6d2f1b717ce6537ea68c9e28a8e7a110cebd2f23 /Makefile
parentlayout: improve readability and remove /notes (diff)
downloadfcuny.net-9611638734d9fa9742c399839c34a35164dd3ba4.tar.gz
build: slowly moving to nix
Add a `flake.nix' configuration to pull the required dependencies and run the server. Remove a few targets from the Makefile and move the deployment part to a script.
Diffstat (limited to '')
-rw-r--r--Makefile17
1 files changed, 1 insertions, 16 deletions
diff --git a/Makefile b/Makefile
index 5414dde..e2731d4 100644
--- a/Makefile
+++ b/Makefile
@@ -5,22 +5,7 @@ DOCKER_IMAGE_REF := $(shell git rev-parse HEAD)
DOCKERFILE := Dockerfile
PROJECT_DIR := $(realpath $(CURDIR))
-.PHONY: server deploy docker-build docker-run worktree-clean
-
-server:
- @echo "Running hugo server ..."
- hugo server
-
-worktree-clean:
- git diff --exit-code
- git diff --staged --exit-code
-
-deploy: worktree-clean docker-build
- @echo "Deploying to fly ..."
- flyctl deploy
- @git tag -a --message $$(flyctl info -j |jq -r '.App | "fcuny.net/v\(.Version)"') $$(flyctl info -j |jq -r '.App | "fcuny.net/v\(.Version)"')
- @git push origin --all
- @git push origin --tags
+.PHONY: docker-build docker-run
docker-build:
@echo "Building Docker image ..."