chore: update workflows config.

This commit is contained in:
jaywcjlove 2022-05-24 23:52:45 +08:00
parent 325bcd4b7e
commit 13248c11e0
1 changed files with 24 additions and 0 deletions

View File

@ -80,6 +80,30 @@ jobs:
Document linux-command@${{ steps.changelog.outputs.tag }}:
https://raw.githack.com/jaywcjlove/linux-command/${{ steps.changelog.outputs.gh-pages-short-hash }}/index.html
## Docker
[![Docker Image Version (latest by date)](https://img.shields.io/docker/v/wcjiang/linux-command)](https://hub.docker.com/r/wcjiang/linux-command) [![Docker Image Size (latest by date)](https://img.shields.io/docker/image-size/wcjiang/linux-command)](https://hub.docker.com/r/wcjiang/linux-command) [![Docker Pulls](https://img.shields.io/docker/pulls/wcjiang/linux-command)](https://hub.docker.com/r/wcjiang/linux-command)
轻松通过 `docker` 部署 `linux-command` 网站。
```bash
docker pull wcjiang/linux-command
```
```bash
docker run --name linux-command --rm -d -p 9665:80 wcjiang/linux-command:latest
# Or
docker run --name linux-command -itd -p 9665:80 wcjiang/linux-command:latest
```
在浏览器中访问以下 URL
```bash
http://localhost:9665/
```
- run: npm install @jsdevtools/npm-publish -g
- run: npm-publish --token="${{ secrets.NPM_TOKEN }}" ./package.json