Skip to content

Commit 13248c1

Browse files
committed
chore: update workflows config.
1 parent 325bcd4 commit 13248c1

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/ci.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,30 @@ jobs:
8080
Document linux-command@${{ steps.changelog.outputs.tag }}:
8181
https://raw.githack.com/jaywcjlove/linux-command/${{ steps.changelog.outputs.gh-pages-short-hash }}/index.html
8282
83+
84+
## Docker
85+
86+
[![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)
87+
88+
轻松通过 `docker` 部署 `linux-command` 网站。
89+
90+
```bash
91+
docker pull wcjiang/linux-command
92+
```
93+
94+
```bash
95+
docker run --name linux-command --rm -d -p 9665:80 wcjiang/linux-command:latest
96+
# Or
97+
docker run --name linux-command -itd -p 9665:80 wcjiang/linux-command:latest
98+
```
99+
100+
在浏览器中访问以下 URL
101+
102+
```bash
103+
http://localhost:9665/
104+
```
105+
106+
83107
- run: npm install @jsdevtools/npm-publish -g
84108
- run: npm-publish --token="${{ secrets.NPM_TOKEN }}" ./package.json
85109

0 commit comments

Comments
 (0)