-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #886 from Chia-Network/remove-dockerfile2
Remove unmaintained Dockerfile
- Loading branch information
Showing
3 changed files
with
89 additions
and
103 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.