https://github.com/sdvcrx/docker-hugo-firebase
Docker image for deploying hugo sites to Firebase
https://github.com/sdvcrx/docker-hugo-firebase
docker-image firebase hugo
Last synced: about 1 month ago
JSON representation
Docker image for deploying hugo sites to Firebase
- Host: GitHub
- URL: https://github.com/sdvcrx/docker-hugo-firebase
- Owner: sdvcrx
- License: mit
- Created: 2021-12-17T06:26:23.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2025-03-20T01:58:57.000Z (2 months ago)
- Last Synced: 2025-04-01T16:19:24.176Z (about 2 months ago)
- Topics: docker-image, firebase, hugo
- Language: Dockerfile
- Homepage: https://hub.docker.com/r/sdvcrx/hugo-firebase
- Size: 137 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# docker-hugo-firebase
[](https://github.com/sdvcrx/docker-hugo-firebase/actions/workflows/docker-image.yaml)


Docker image for deploying [hugo](https://gohugo.io/) sites to [Firebase](https://firebase.google.com/)
## Usage
Pull docker image from [Docker Hub](https://hub.docker.com/r/sdvcrx/hugo-firebase)
```shell
docker pull sdvcrx/hugo-firebase
```Or pull from [ghcr.io](https://github.com/sdvcrx/docker-hugo-firebase/pkgs/container/hugo-firebase)
```shell
docker pull ghcr.io/sdvcrx/hugo-firebase
```## Example
### CLI
Using hugo-firebase image to build hugo site and push to firebase:
```shell
docker run -v `pwd`:/app --rm sdvcrx/hugo-firebase bash -c 'hugo && firebase deploy --token [token]'
```### Drone CI
```yaml
- name: build
image: sdvcrx/hugo-firebase
pull: always
environment:
FIREBASE_TOKEN:
from_secret: FIREBASE_TOKEN
commands:
- hugo --minify
- firebase deploy --token "$FIREBASE_TOKEN"
```## Development
This repo is using [GitHub Actions](https://github.com/sdvcrx/docker-hugo-firebase/blob/master/.github/workflows/check-update.yaml) to keep hugo version up to date.