forked from devopsdays/devopsdays-web
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
27 lines (21 loc) · 760 Bytes
/
Copy pathmakefile
File metadata and controls
27 lines (21 loc) · 760 Bytes
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
.PHONY: deps build server clean docker-server
HUGO_VERSION := $(shell grep 'HUGO_VERSION:' .github/workflows/hugo.yml | sed 's/.*: //')
NODE_VERSION := $(shell grep 'NODE_VERSION:' .github/workflows/hugo.yml | sed 's/.*: //')
# Copy dependencies from node_modules to assets
deps:
./utilities/build-scripts/copy-scss-deps.sh
./utilities/build-scripts/copy-js-deps.sh
# Build the site
build: deps
hugo
# Run the development server
server: deps
hugo server
# Run the development server via Docker (versions sourced from .github/workflows/hugo.yml)
docker-server:
NODE_VERSION=$(NODE_VERSION) HUGO_VERSION=$(HUGO_VERSION) \
docker compose -f utilities/contrib/docker-compose.yml up
# Clean up generated files
clean:
rm -rf public/
rm -rf resources/