Skip to content

Commit

Permalink
docker: publish a reusable image
Browse files Browse the repository at this point in the history
  • Loading branch information
NickVolynkin committed Nov 15, 2023
1 parent aaddae4 commit 0756e85
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Things we don't want in a Docker image
.env
.git
.github
.idea

# build artifacts
coverage
coverage.json
node_modules
typechain
typechain-types

# Hardhat files
artifacts
cache
deployments
23 changes: 23 additions & 0 deletions .github/workflows/run_tests_docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: run-docker-tests

on:
pull_request:

concurrency:
group: ${{
( github.ref == 'refs/heads/master' &&
format('{0}/{1}', github.run_id, github.run_attempt) )
||
format('{0}/{1}', github.workflow, github.ref) }}
cancel-in-progress: true


jobs:
run-tests:
runs-on: [ ubuntu-22.04 ]
steps:
- uses: actions/checkout@v3

- name: Build a Docker image
run: docker build -t ghcr.io/nilfoundation/evm-placeholder-verifier:${{ github.sha }}

8 changes: 8 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
FROM node:18.18-bullseye

ADD . /opt/evm-placeholder-verification

WORKDIR /opt/evm-placeholder-verification

RUN npm install
RUN npx hardhat compile

0 comments on commit 0756e85

Please sign in to comment.