diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 827cfaa..78bfa31 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -27,4 +27,4 @@ jobs: run: docker build ./ -t velodrome/sugar - name: Runs code QA and tests - run: docker run --rm --env-file=env.${{ matrix.chain }} -w /app -t velodrome/sugar sh -c 'python -m black . && ape compile && ape test --network ${{ matrix.chain }}:mainnet:node' + run: docker run --rm --env-file=deployments/${{ matrix.chain }}.env -w /app -t velodrome/sugar sh -c 'python -m black . && ape test --network ${{ matrix.chain }}:mainnet:node' diff --git a/Dockerfile b/Dockerfile index bd7bd70..ae078ac 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,7 @@ FROM ghcr.io/apeworx/ape:latest-slim +USER root + COPY . /app WORKDIR /app diff --git a/env.base b/deployments/base.env similarity index 100% rename from env.base rename to deployments/base.env diff --git a/env.fraxtal b/deployments/fraxtal.env similarity index 100% rename from env.fraxtal rename to deployments/fraxtal.env diff --git a/env.lisk b/deployments/lisk.env similarity index 100% rename from env.lisk rename to deployments/lisk.env diff --git a/env.metall2 b/deployments/metall2.env similarity index 100% rename from env.metall2 rename to deployments/metall2.env diff --git a/env.mode b/deployments/mode.env similarity index 100% rename from env.mode rename to deployments/mode.env diff --git a/env.optimism b/deployments/optimism.env similarity index 100% rename from env.optimism rename to deployments/optimism.env diff --git a/readme.md b/readme.md index 35c9119..bab140a 100644 --- a/readme.md +++ b/readme.md @@ -236,7 +236,7 @@ docker build ./ -t velodrome/sugar Next start the container with existing environment variables: ```sh -docker run --env-file=env.{{chain}} --rm -v $(pwd):/app -w /app -it velodrome/sugar sh +docker run --env-file=deployments/{{chain}}.env --rm -v $(pwd):/app -w /app -it velodrome/sugar sh ``` The environment has Brownie and Vyper already installed. @@ -249,8 +249,8 @@ ape test --network={{chain}}:mainnet:node This repository is used to manage the releases for multiple chains. -The latest deployed contracts can be found in the `env.{{chain}}` files in the -root of the repository. +The latest deployed contracts can be found in the `deployments/{{chain}}.env` +files in the root of the repository. ## Why the contracts are not verified?