From 35f06ba7a90a7014aee82051d922da84dcfa44de Mon Sep 17 00:00:00 2001 From: xpnas Date: Thu, 25 Mar 2021 23:05:34 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9Docker?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/dockerservice.yml | 36 ------------------- .github/workflows/dockervue.yml | 56 ----------------------------- Inotify.Vue/Dockerfile | 6 ---- 3 files changed, 98 deletions(-) delete mode 100644 .github/workflows/dockerservice.yml delete mode 100644 .github/workflows/dockervue.yml delete mode 100644 Inotify.Vue/Dockerfile diff --git a/.github/workflows/dockerservice.yml b/.github/workflows/dockerservice.yml deleted file mode 100644 index 70d8e0b..0000000 --- a/.github/workflows/dockerservice.yml +++ /dev/null @@ -1,36 +0,0 @@ -name: docker_service - -on: - push: - branches: [ master ] - pull_request: - branches: [ master ] - -jobs: - build: - runs-on: ubuntu-latest - steps: - - - name: Check out the repo - uses: actions/checkout@v2 - - - name: Set up QEMU - uses: docker/setup-qemu-action@v1 - - - name: Login to DockerHub - uses: docker/login-action@v1 - with: - username: ${{ secrets.DOCKERHUB_USERNAME }} - password: ${{ secrets.DOCKERHUB_TOKEN }} - - - name: Docker Build & Push to Docker Hub For Service - uses: docker/build-push-action@v2 - with: - context: . - file: ./Inotify/Dockerfile - platforms: linux/amd64 - push: true - tags: ${{ secrets.DOCKERHUB_TAG }}:service - - - name: 'Report Suecss' - run: curl ${{ secrets.INOTIFY }}/Inotify_service/dockerBuildComplated! diff --git a/.github/workflows/dockervue.yml b/.github/workflows/dockervue.yml deleted file mode 100644 index 7aa29db..0000000 --- a/.github/workflows/dockervue.yml +++ /dev/null @@ -1,56 +0,0 @@ -name: docker_vue - -on: - push: - branches: [master] - pull_request: - branches: [master] - -jobs: - build: - runs-on: ubuntu-latest - steps: - - name: Check out the repo - uses: actions/checkout@v2 - - - name: Cache node modules NPM - uses: actions/cache@v2 - env: - cache-name: cache-node-modules-NPM - with: - path: ~/.npm - key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('./Inotify.Vue/package.json') }} - restore-keys: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('./Inotify.Vue/package.json') }} - - - name: Cache node modules - uses: actions/cache@v2 - env: - cache-name: cache-node-modules - with: - path: ./Inotify.Vue/node_modules - key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('./Inotify.Vue/package.json') }} - restore-keys: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('./Inotify.Vue/package.json') }} - - - name: InstallNode and BuildVue - run: | - cd ./Inotify.Vue - npm install - npm run build:prod - - - name: Login to DockerHub - uses: docker/login-action@v1 - with: - username: ${{ secrets.DOCKERHUB_USERNAME }} - password: ${{ secrets.DOCKERHUB_TOKEN }} - - - name: Docker Build & Push to Docker Hub For Inotify.Vue - uses: docker/build-push-action@v2 - with: - context: ./Inotify.Vue - file: ./Inotify.Vue/Dockerfile - platforms: linux/amd64 - push: true - tags: ${{ secrets.DOCKERHUB_TAG }}:vue - - - name: 'Report Suecss' - run: curl ${{ secrets.INOTIFY }}/InotifyVue/dockerBuildComplated! diff --git a/Inotify.Vue/Dockerfile b/Inotify.Vue/Dockerfile deleted file mode 100644 index 928bce0..0000000 --- a/Inotify.Vue/Dockerfile +++ /dev/null @@ -1,6 +0,0 @@ -FROM nginx -RUN mkdir /usr/share/nginx/dist -RUN rm -rf /etc/nginx/nginx.conf -COPY ./nginx.conf /etc/nginx/nginx.conf -COPY ./../inotify/wwwroot /usr/share/nginx/dist -EXPOSE 9099 \ No newline at end of file