diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b3d31e2..e7b7511 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 diff --git a/nginx/web.conf b/nginx/web.conf index cf8c71f..30cd243 100644 --- a/nginx/web.conf +++ b/nginx/web.conf @@ -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; + } +} \ No newline at end of file