diff --git a/.github/workflows/build-docker.yaml b/.github/workflows/build-docker.yaml index b8fc4545..c17a305d 100644 --- a/.github/workflows/build-docker.yaml +++ b/.github/workflows/build-docker.yaml @@ -1,87 +1,87 @@ -name: Build Docker Image - -on: - push: - tags: - - '**' - pull_request: - branches: - - '**' - -concurrency: - group: ${{ github.ref }}-${{ github.workflow }}-${{ github.event_name }} - cancel-in-progress: true - -jobs: - build: - name: Build Docker Image - runs-on: ${{ matrix.runs-on }} - strategy: - matrix: - include: - - runs-on: ubuntu-latest - artifact-name: cadt-linux-x64 - - steps: - - uses: Chia-Network/actions/clean-workspace@main - - - name: Checkout Code - uses: actions/checkout@v3 - - - name: Setup Node 16.x - uses: actions/setup-node@v3 - with: - node-version: '16.14' - - - name: Ignore Husky - run: npm pkg delete scripts.prepare - if: matrix.runs-on != 'windows-latest' - - - name: npm install - run: npm install - - - name: npm cache clear --force - run: npm cache clear --force - - - name: npm cache rm - run: npm cache rm --force - - - name: npm cache verify - run: npm cache verify - - - name: install global packages - run: npm i -g @babel/cli @babel/preset-env pkg - - - name: npm run build - run: npm run build - - - name: CleanDB - run: npm run cleandb - - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 - - - name: Login to GitHub Container Registry - uses: docker/login-action@v2 - with: - registry: ghcr.io - username: ${{ github.actor }} - password: ${{ github.token }} - - - name: Docker meta - id: meta - uses: docker/metadata-action@v4 - with: - images: | - ghcr.io/chia-network/cadt - tags: | - type=raw,value=latest,enable=${{ endsWith(github.ref, github.event.repository.default_branch) }} - type=sha,format=long - - - name: Build and push docker image - uses: docker/build-push-action@v3 - with: - context: . - no-cache: true - push: true - tags: ${{ steps.meta.outputs.tags }} +# name: Build Docker Image + +# on: +# push: +# tags: +# - '**' +# pull_request: +# branches: +# - '**' + +# concurrency: +# group: ${{ github.ref }}-${{ github.workflow }}-${{ github.event_name }} +# cancel-in-progress: true + +# jobs: +# build: +# name: Build Docker Image +# runs-on: ${{ matrix.runs-on }} +# strategy: +# matrix: +# include: +# - runs-on: ubuntu-latest +# artifact-name: cadt-linux-x64 + +# steps: +# - uses: Chia-Network/actions/clean-workspace@main + +# - name: Checkout Code +# uses: actions/checkout@v3 + +# - name: Setup Node 16.x +# uses: actions/setup-node@v3 +# with: +# node-version: '16.14' + +# - name: Ignore Husky +# run: npm pkg delete scripts.prepare +# if: matrix.runs-on != 'windows-latest' + +# - name: npm install +# run: npm install + +# - name: npm cache clear --force +# run: npm cache clear --force + +# - name: npm cache rm +# run: npm cache rm --force + +# - name: npm cache verify +# run: npm cache verify + +# - name: install global packages +# run: npm i -g @babel/cli @babel/preset-env pkg + +# - name: npm run build +# run: npm run build + +# - name: CleanDB +# run: npm run cleandb + +# - name: Set up Docker Buildx +# uses: docker/setup-buildx-action@v2 + +# - name: Login to GitHub Container Registry +# uses: docker/login-action@v2 +# with: +# registry: ghcr.io +# username: ${{ github.actor }} +# password: ${{ github.token }} + +# - name: Docker meta +# id: meta +# uses: docker/metadata-action@v4 +# with: +# images: | +# ghcr.io/chia-network/cadt +# tags: | +# type=raw,value=latest,enable=${{ endsWith(github.ref, github.event.repository.default_branch) }} +# type=sha,format=long + +# - name: Build and push docker image +# uses: docker/build-push-action@v3 +# with: +# context: . +# no-cache: true +# push: true +# tags: ${{ steps.meta.outputs.tags }} diff --git a/.gitignore b/.gitignore index 4e772c7a..4d43f334 100644 --- a/.gitignore +++ b/.gitignore @@ -23,6 +23,8 @@ testMirror.sqlite3 .env.test.local .env.production.local .idea/* +.vscode +.vscode/* npm-debug.log* yarn-debug.log* diff --git a/Dockerfile b/Dockerfile deleted file mode 100644 index b268018a..00000000 --- a/Dockerfile +++ /dev/null @@ -1,16 +0,0 @@ -FROM node:16.20 - -WORKDIR /usr/src/app -RUN npm install -g json -RUN npm install semver -COPY package*.json ./ -COPY check_node_version.js ./ -RUN json -I -f package.json -e "this.type=\"commonjs\"" -COPY ./build . -RUN npm set-script prepare "" -RUN npm set-script postinstall "" -RUN npm set-script requirements-check "" -RUN npm install - -EXPOSE 3030 -CMD [ "node", "server.js" ]