Skip to content

Commit

Permalink
Merge pull request #51 from covalenthq/direnv_fix
Browse files Browse the repository at this point in the history
fix for direnv not picking .env anymore
  • Loading branch information
noslav committed Mar 29, 2022
2 parents 05ad10b + 6f7e9a5 commit 19f02b2
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ jobs:
docker build . --file Dockerfile --tag ghcr.io/covalenthq/bsp-agent:latest
docker push ghcr.io/covalenthq/bsp-agent:latest
- name: Create env file
- name: Create .envrc file
run: |
touch .env
echo PRIVATE_KEY=${{ secrets.PRIVATE_KEY }} >> .env
echo RPC_URL=${{ secrets.RPC_URL }} >> .env
touch .envrc
echo PRIVATE_KEY=${{ secrets.PRIVATE_KEY }} >> .envrc
echo RPC_URL=${{ secrets.RPC_URL }} >> .envrc
- uses: HatsuneMiku3939/direnv-action@v1
- name: Start containers
Expand All @@ -41,9 +41,9 @@ jobs:
- name: Check running containers
run: docker ps

- name: Delete env file
- name: Delete .envrc file
run: |
rm -rf .env
rm -rf .envrc
- name: Stop containers
if: always()
Expand All @@ -69,11 +69,11 @@ jobs:
docker build . --file Dockerfile --tag ghcr.io/covalenthq/bsp-agent:latest
docker push ghcr.io/covalenthq/bsp-agent:latest
- name: Create env file
- name: Create .envrc file
run: |
touch .env
echo PRIVATE_KEY=${{ secrets.PRIVATE_KEY }} >> .env
echo RPC_URL=${{ secrets.RPC_URL }} >> .env
touch .envrc
echo PRIVATE_KEY=${{ secrets.PRIVATE_KEY }} >> .envrc
echo RPC_URL=${{ secrets.RPC_URL }} >> .envrc
- uses: HatsuneMiku3939/direnv-action@v1
- name: Start containers
Expand All @@ -85,9 +85,9 @@ jobs:
- name: Check running containers
run: docker ps

- name: Delete Env file
- name: Delete .envrc file
run: |
rm -rf .env
rm -rf .envrc
- name: Stop containers
if: always()
Expand Down

0 comments on commit 19f02b2

Please sign in to comment.