Skip to content

sdvcrx/docker-hugo-firebase

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

docker-hugo-firebase

Docker Image CI Docker Image Version Docker Image Size Docker Image Pulls

Docker image for deploying hugo sites to Firebase

Usage

Pull docker image from Docker Hub

docker pull sdvcrx/hugo-firebase

Or pull from ghcr.io

docker pull ghcr.io/sdvcrx/hugo-firebase

Example

CLI

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]'

Drone CI

- 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 to keep hugo version up to date.