Skip to content

Commit b28f25d

Browse files
committed
docker: publish a reusable image
1 parent aaddae4 commit b28f25d

3 files changed

Lines changed: 48 additions & 0 deletions

File tree

.dockerignore

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Things we don't want in a Docker image
2+
.env
3+
.git
4+
.github
5+
.idea
6+
7+
# build artifacts
8+
coverage
9+
coverage.json
10+
node_modules
11+
typechain
12+
typechain-types
13+
14+
# Hardhat files
15+
artifacts
16+
cache
17+
deployments
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: run-docker-tests
2+
3+
on:
4+
pull_request:
5+
6+
concurrency:
7+
group: ${{
8+
( github.ref == 'refs/heads/master' &&
9+
format('{0}/{1}', github.run_id, github.run_attempt) )
10+
||
11+
format('{0}/{1}', github.workflow, github.ref) }}
12+
cancel-in-progress: true
13+
14+
15+
jobs:
16+
run-tests:
17+
runs-on: [ ubuntu-22.04 ]
18+
steps:
19+
- uses: actions/checkout@v3
20+
21+
- name: Build a Docker image
22+
run: docker build -t ghcr.io/nilfoundation/evm-placeholder-verifier:${ github.sha }
23+

Dockerfile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
FROM node:18.18-bullseye
2+
3+
ADD . /opt/evm-placeholder-verification
4+
5+
WORKDIR /opt/evm-placeholder-verification
6+
7+
RUN npm install
8+
RUN npx hardhat compile

0 commit comments

Comments
 (0)