Skip to content

Latest commit

 

History

History
50 lines (35 loc) · 1.47 KB

README.md

File metadata and controls

50 lines (35 loc) · 1.47 KB

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.