Skip to content

Commit

Permalink
Modify workflow config.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed May 30, 2020
1 parent 2678e4f commit 78c8b0d
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,23 @@ jobs:
docker push ${{ secrets.DOCKER_USER }}/typeorm.github.io:$VERSION
docker push ${{ secrets.DOCKER_USER }}/typeorm.github.io:latest
- name: Build uiwjs.github.io image
run: |
cd ./uiwjs\.github\.io
docker build -t uiwjs.github.io .
- name: Tags & Push uiwjs.github.io
run: |
# Strip git ref prefix from version
VERSION=$(echo "${{ github.ref }}" | sed -e 's,.*/\(.*\),\1,')
# Strip "v" prefix from tag name
[[ "${{ github.ref }}" == "refs/tags/"* ]] && VERSION=$(echo $VERSION | sed -e 's/^v//')
docker tag uiwjs.github.io ${{ secrets.DOCKER_USER }}/uiwjs.github.io:$VERSION
docker tag uiwjs.github.io ${{ secrets.DOCKER_USER }}/uiwjs.github.io:latest
docker push ${{ secrets.DOCKER_USER }}/uiwjs.github.io:$VERSION
docker push ${{ secrets.DOCKER_USER }}/uiwjs.github.io:latest
- name: Build zh-hans.reactjs.org image
run: |
cd ./zh-hans\.reactjs\.org
Expand Down
8 changes: 8 additions & 0 deletions nginx/web.conf
Original file line number Diff line number Diff line change
Expand Up @@ -141,3 +141,11 @@ server {
try_files $uri $uri/ /index.html =404;
}
}

server {
listen 60066;
root /usr/share/nginx/web;
location / {
try_files $uri $uri/ /index.html =404;
}
}

0 comments on commit 78c8b0d

Please sign in to comment.