Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
adrien-f committed Mar 17, 2019
1 parent 8ae3ce1 commit 7c0af37
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,26 @@ jobs:
- run: docker login -u="${DOCKER_USERNAME}" -p="${DOCKER_PASSWORD}"
- run: make docker-push DOCKER_IMAGE_TAG=$CIRCLE_TAG

docs:
docker:
- image: cibuilds/hugo:latest
working_directory: ~/hugo
steps:
- run: apk update && apk add git
- checkout
- run:
name: Deploy to GitHub Pages
command: |
cd website
hugo -v
cd public
git init
git config --global user.email "[email protected]"
git config --global user.name "AdrienF"
git add .
git commit -m "Deploy from CI"
git push --force --quiet "https://${GITHUB_TOKEN}@github.com/adrien-f/thanos.git" master:gh-pages
workflows:
version: 2
thanos:
Expand Down Expand Up @@ -128,3 +148,7 @@ workflows:
only: /^v[0-9]+(\.[0-9]+){2}(-.+|[^-.]*)$/
branches:
ignore: /.*/
- docs:
filters:
branches:
only: feature/docs-hugo

0 comments on commit 7c0af37

Please sign in to comment.