hugo, base the image tag on the branch being used, change the ports to be in the env file.

This commit is contained in:
me committed 2026-10-29 08:57:30 -07:00
1 parent 208d10034e
commit 94273679d8
2 files changed
+5 -3

No files matched your search

@@ -6,11 +6,11 @@ services:
container_name: hugo
build:
context: ./
image: hyperling-hugo:latest
image: hyperling-hugo:$BRANCH
restart: always
ports:
- 8013:80 # Production minified files served using NGINX.
- 1380:1380 # Development files with drafts served by Hugo Server.
- $PROD_PORT:80 # Production minified files served using NGINX.
#- $DEV_PORT:1380 # Development files with drafts served by Hugo Server.
environment:
- REPO=$REPO
- BRANCH=$BRANCH
+2
View File
@@ -17,9 +17,11 @@ BRANCH=prod
# Whether to start NGINX
PROD=YES
PROD_PORT=8013
# Whether to start Hugo Server
DEV=NO
DEV_PORT=1380
#
## Resources ##