Skip to content

Latest commit

 

History

History
68 lines (53 loc) · 1.67 KB

README.md

File metadata and controls

68 lines (53 loc) · 1.67 KB

Hexo Docker

GitHub stars Docker Stars Docker Pulls

Supported tags and respective Dockerfile links

Usage

进入 hexo 源文件夹

Build

$ docker run -it --rm \
     -v $PWD:/srv/hexo-src \
     khs1994/hexo

Server

$ docker run -it --rm \
     -v $PWD:/srv/hexo-src \
     khs1994/hexo \
     server

Deploy

$ docker run -it --rm \
     -v $PWD:/srv/hexo-src \
     -v ~/.ssh:/root/.ssh \
     -e GIT_USERNAME=username \
     -e [email protected] \
     khs1994/hexo \
     deploy
- name: SSH settings
  uses: Homebrew/actions/git-ssh@master
  with:
    git_user: username
    git_email: [email protected]
    key_name: key_rsa
    key: ${{ secrets.SSH_KEY }}
- name: Hexo Build
  uses: docker://khs1994/hexo
- name: Hexo Deploy
  if: github.event_name == 'push'
  run: |
    docker run -it --rm \
       -v $PWD:/srv/hexo-src \
       -v ~/.ssh:/root/.ssh \
       -e GIT_USERNAME=username \
       -e [email protected] \
       khs1994/hexo \
       deploy

Who use this image ?