Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docker: publish a reusable image #93

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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