Skip to content

Commit

Permalink
Merge pull request #886 from Chia-Network/remove-dockerfile2
Browse files Browse the repository at this point in the history
Remove unmaintained Dockerfile
  • Loading branch information
TheLastCicada authored Jun 9, 2023
2 parents 6f91d43 + 7351e44 commit a49b284
Show file tree
Hide file tree
Showing 3 changed files with 89 additions and 103 deletions.
174 changes: 87 additions & 87 deletions .github/workflows/build-docker.yaml
Original file line number Diff line number Diff line change
@@ -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 }}
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ testMirror.sqlite3
.env.test.local
.env.production.local
.idea/*
.vscode
.vscode/*

npm-debug.log*
yarn-debug.log*
Expand Down
16 changes: 0 additions & 16 deletions Dockerfile

This file was deleted.

0 comments on commit a49b284

Please sign in to comment.