diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9a0a448348..0e70e0b4db 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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