Skip to content

Commit

Permalink
maybe preparing ~/.ocean is needed
Browse files Browse the repository at this point in the history
  • Loading branch information
kremalicious committed Jun 16, 2021
1 parent 9ace412 commit 23a9178
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
test:
runs-on: ubuntu-latest
env:
ADDRESS_FILE: '${HOME}/.ocean/ocean-contracts/artifacts/address.json'
ADDRESS_FILE: ${{ github.workspace }}/.ocean/ocean-contracts/artifacts/address.json
AQUARIUS_URI: 'http://172.15.0.5:5000'
steps:
- uses: actions/checkout@v2
Expand All @@ -57,12 +57,21 @@ jobs:
path: 'barge'

- name: Login to Docker Hub
if: ${{ env.DOCKERHUB_PASSWORD && env.DOCKERHUB_USERNAME }}
run: |
if [[ -n "$DOCKERHUB_PASSWORD" && -n "$DOCKERHUB_USERNAME" ]]; then echo "Login to Docker Hub";echo "$DOCKERHUB_PASSWORD" | docker login -u "$DOCKERHUB_USERNAME" --password-stdin; fi
echo "Login to Docker Hub";echo "$DOCKERHUB_PASSWORD" | docker login -u "$DOCKERHUB_USERNAME" --password-stdin
env:
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
DOCKERHUB_PASSWORD: ${{ secrets.DOCKERHUB_PASSWORD }}

# - name: Prepare ~/.ocean
# run: |
# mkdir "${HOME}/.ocean/" &&
# mkdir "${HOME}/.ocean/ocean-contracts/" &&
# mkdir "${HOME}/.ocean/ocean-contracts/artifacts" &&
# touch "${HOME}/.ocean/ocean-contracts/artifacts/address.json" &&
# echo "{}" >> "${HOME}/.ocean/ocean-contracts/artifacts/address.json"

- name: Run Barge
working-directory: ${{ github.workspace }}/barge
env:
Expand Down

0 comments on commit 23a9178

Please sign in to comment.