Skip to content

Commit

Permalink
env: add deployments folder.
Browse files Browse the repository at this point in the history
  • Loading branch information
stas committed Dec 20, 2024
1 parent 275ecd3 commit 29aa1f9
Show file tree
Hide file tree
Showing 9 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
FROM ghcr.io/apeworx/ape:latest-slim

USER root

COPY . /app
WORKDIR /app

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand All @@ -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?

Expand Down

0 comments on commit 29aa1f9

Please sign in to comment.