https://github.com/sawadashota/hugo-firebase
Build HUGO and deploy to Firebase
https://github.com/sawadashota/hugo-firebase
circleci docker dockerfile
Last synced: 15 days ago
JSON representation
Build HUGO and deploy to Firebase
- Host: GitHub
- URL: https://github.com/sawadashota/hugo-firebase
- Owner: sawadashota
- Created: 2017-10-22T07:18:07.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-06-04T12:55:02.000Z (about 8 years ago)
- Last Synced: 2025-02-27T07:06:21.247Z (over 1 year ago)
- Topics: circleci, docker, dockerfile
- Homepage: https://hub.docker.com/r/sawadashota/hugo-firebase/
- Size: 1000 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# HUGO deploy to Firebase
## For What?
For CI to build HUGO and deploy to Firebase hosting.
## CircleCI Sample
```yml:.circleci/config.yml
version: 2
jobs:
build:
docker:
- image: sawadashota/hugo-firebase:latest
steps:
- checkout
- run: git submodule sync
- run: git submodule update --init
- run: |
if [ "${CIRCLE_BRANCH}" == "master" ]; then
HUGO_ENV=production hugo
firebase deploy --only hosting --token $FIREBASE_TOKEN
else
echo "Not master branch so not deploying"
fi
```