Docker image for deploying hugo sites to Firebase
Pull docker image from Docker Hub
docker pull sdvcrx/hugo-firebase
Or pull from ghcr.io
docker pull ghcr.io/sdvcrx/hugo-firebase
Using hugo-firebase image to build hugo site and push to firebase:
docker run -v `pwd`:/app --rm sdvcrx/hugo-firebase bash -c 'hugo && firebase deploy --token [token]'
- name: build
image: sdvcrx/hugo-firebase
pull: always
environment:
FIREBASE_TOKEN:
from_secret: FIREBASE_TOKEN
commands:
- hugo --minify
- firebase deploy --token "$FIREBASE_TOKEN"
This repo is using GitHub Actions to keep hugo version up to date.