Skip to content

Commit

Permalink
ci: update workflows config.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Dec 7, 2024
1 parent 79a7a2b commit 9e77e57
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Checkout react.dev code
- name: Checkout zh-hans.react.dev code
uses: actions/checkout@v4
with:
repository: reactjs/react.dev
repository: reactjs/zh-hans.react.dev

- name: Checkout code
uses: actions/checkout@v4
Expand Down Expand Up @@ -75,4 +75,4 @@ jobs:
push: true
context: .
platforms: linux/amd64,linux/arm64
tags: ${{ secrets.DOCKER_USER }}/react.dev:latest
tags: ${{ secrets.DOCKER_USER }}/zh-hans.react.dev:latest
8 changes: 4 additions & 4 deletions .github/workflows/tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Checkout react.dev code
- name: Checkout zh-hans.react.dev code
uses: actions/checkout@v4
with:
repository: reactjs/react.dev
repository: reactjs/zh-hans.react.dev

- name: Checkout code
uses: actions/checkout@v4
Expand Down Expand Up @@ -75,6 +75,6 @@ jobs:
context: .
platforms: linux/amd64,linux/arm64
tags: |
${{ secrets.DOCKER_USER }}/react.dev:latest
${{ secrets.DOCKER_USER }}/react.dev:${{ github.ref_name }}
${{ secrets.DOCKER_USER }}/zh-hans.react.dev:latest
${{ secrets.DOCKER_USER }}/zh-hans.react.dev:${{ github.ref_name }}
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
React documentation for [Docker](https://hub.docker.com/r/wcjiang/react.dev)
React 中文文档 for [Docker](https://hub.docker.com/r/wcjiang/zh-hans.react.dev)
===

<!--rehype:ignore:start-->
[![CI](https://github.com/jaywcjlove/zh-hans.react.dev-for-docker/actions/workflows/ci.yml/badge.svg)](https://github.com/jaywcjlove/zh-hans.react.dev-for-docker/actions/workflows/ci.yml)
[![Docker Image Version (latest by date)](https://img.shields.io/docker/v/wcjiang/react.dev)](https://hub.docker.com/r/wcjiang/react.dev)
[![Docker Image Size (latest by date)](https://img.shields.io/docker/image-size/wcjiang/react.dev)](https://hub.docker.com/r/wcjiang/react.dev)
[![Docker Pulls](https://img.shields.io/docker/pulls/wcjiang/react.dev)](https://hub.docker.com/r/wcjiang/react.dev)
[![Docker Image Version (latest by date)](https://img.shields.io/docker/v/wcjiang/zh-hans.react.dev)](https://hub.docker.com/r/wcjiang/zh-hans.react.dev)
[![Docker Image Size (latest by date)](https://img.shields.io/docker/image-size/wcjiang/zh-hans.react.dev)](https://hub.docker.com/r/wcjiang/zh-hans.react.dev)
[![Docker Pulls](https://img.shields.io/docker/pulls/wcjiang/zh-hans.react.dev)](https://hub.docker.com/r/wcjiang/zh-hans.react.dev)
[![GitHub last commit](https://img.shields.io/github/last-commit/jaywcjlove/zh-hans.react.dev-for-docker?style=flat&label=zh-hans.react.dev)](https://github.com/jaywcjlove/zh-hans.react.dev-for-docker/commits)
<!--rehype:ignore:end-->

The new [React documentation](https://github.com/reactjs/react.dev) supports Docker deployment, making it convenient for local viewing and learning.
[React 中文文档](https://zh-hans.react.dev/) docker 版本,方便本地[部署](https://github.com/reactjs/zh-hans.react.dev)查看文档


```bash
docker pull wcjiang/react.dev:latest
docker pull wcjiang/zh-hans.react.dev:latest
```

```bash
docker run --name zh-hans.react.dev \
-p 60007:3000 \
--restart=always \
-d wcjiang/react.dev:latest
-d wcjiang/zh-hans.react.dev:latest
```

## License
Expand Down

0 comments on commit 9e77e57

Please sign in to comment.