Skip to content

pcit-plugins/pcit-hexo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 ?