This project is dedicated to collecting high-quality macOS software and organizing them systematically by different categories for easy search and use.
Dockerfile appappleapplicationappsawesomeawesome-listawesome-macdesktop-appdesktop-applicationdesktop-appslistmacmac-osxmacosmacos-appmacos-appsmacosxsoftwareswiftswiftui
feat: add Dockerfile.
jaywcjlove4959338f06c8
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.ymlindex 7688c8b9..7080e67f 100644--- a/.github/workflows/ci.yml+++ b/.github/workflows/ci.yml@@ -48,8 +48,10 @@ jobs:body: |[](https://uiwjs.github.io/npm-unpkg/#/pkg/awesome-mac@${{steps.create_tag.outputs.versionNumber}}/file/README.md)- ${{ steps.changelog.outputs.compareurl }}+ Documentation ${{ steps.changelog.outputs.tag }}: https://raw.githack.com/jaywcjlove/awesome-mac/${{ steps.changelog.outputs.gh-pages-short-hash }}/index.html+ Comparing Changes: ${{ steps.changelog.outputs.compareurl }}+${{ steps.changelog.outputs.changelog }}```bash@@ -58,5 +60,41 @@ jobs:# dist/awesome-mac.zh.json```+ ## Docker++ ```bash+ docker pull wcjiang/awesome-mac:${{steps.changelog.outputs.version}}+ ```++ ```bash+ docker run --name awesome-mac --rm -d -p 9881:80 wcjiang/awesome-mac:${{steps.changelog.outputs.version}}+ # Or+ docker run --name awesome-mac -itd -p 9881:80 wcjiang/awesome-mac:${{steps.changelog.outputs.version}}+ ```++ Visit the following URL in your browser++ ```bash+ http://localhost:9881/+ ```+- run: npm install @jsdevtools/npm-publish -g- run: npm-publish --token="${{ secrets.NPM_TOKEN }}" ./package.json++ # Create Docker Image+ - name: Docker login+ if: steps.create_tag.outputs.successful+ run: docker login -u ${{ secrets.DOCKER_USER }} -p ${{ secrets.DOCKER_PASSWORD }}++ - name: Build Awesome Mac image+ if: steps.create_tag.outputs.successful+ run: docker image build -t tools .++ - name: Tags & Push image+ if: steps.create_tag.outputs.successful+ run: |+ echo "outputs.tag - ${{ steps.changelog.outputs.version }}"+ docker tag tools ${{ secrets.DOCKER_USER }}/tools:${{steps.changelog.outputs.version}}+ docker tag tools ${{ secrets.DOCKER_USER }}/tools:latest+ docker push ${{ secrets.DOCKER_USER }}/tools:${{steps.changelog.outputs.version}}+ docker push ${{ secrets.DOCKER_USER }}/tools:latest\ No newline at end of filediff --git a/Dockerfile b/Dockerfilenew file mode 100644index 00000000..3fce24ab--- /dev/null+++ b/Dockerfile@@ -0,0 +1,10 @@+FROM nginx:1-alpine++ENV APPDIR /usr/share/nginx/html+RUN mkdir -p $APPDIR++RUN cat /etc/nginx/conf.d/default.conf++WORKDIR $APPDIR++ADD ./dist /usr/share/nginx/html\ No newline at end of file