Skip to content

Commit

Permalink
wait for lakefs and back to use curl
Browse files Browse the repository at this point in the history
  • Loading branch information
nopcoder committed Oct 15, 2023
1 parent c83df9a commit ca60fba
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/provider.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,13 @@ jobs:
LAKECTL_SERVER_ENDPOINT_URL: http://localhost:8000
LAKECTL_CREDENTIALS_ACCESS_KEY_ID: $${ env.Key }}
LAKECTL_CREDENTIALS_SECRET_ACCESS_KEY: $${ env.SECRET }}

ports:
8000:8000
options: >-
--health-cmd curl --head --retry 5 --retry-connrefused --retry-delay 1 http://localhost:8000/_health
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- name: Checkout
uses: actions/checkout@v2
Expand Down Expand Up @@ -63,7 +69,7 @@ jobs:
run: astro dev start

- name: Create test repo
run: docker exec lakefs lakectl repo create example-repo local://data/example-repo
run: curl -u '${{ env.KEY }}:${{ env.SECRET }}' -H 'Content-Type: application/json' -X POST --data '{"name":"example-repo","storage_namespace":"local://data/"}' http://localhost:8000/api/v1/repositories

- name: Run lakeFS DAG
working-directory: astro
Expand Down

0 comments on commit ca60fba

Please sign in to comment.