-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #602 from splitgraph/bugfix/cli-csv-ingestion
Various fixes for sgr cloud CLIs
- Loading branch information
Showing
13 changed files
with
253 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,7 +30,8 @@ def generate_job( | |
{ | ||
"name": "Set up dbt Git URL", | ||
"run": 'echo "$CREDENTIALS_YML" > splitgraph.credentials.yml && ' | ||
'sed -i "s|\\$THIS_REPO_URL|https://$GITHUB_ACTOR:[email protected]/$GITHUB_REPOSITORY|g" splitgraph.credentials.yml', | ||
'sed -i "s|\\$THIS_REPO_URL|https://$GITHUB_ACTOR:[email protected]/$GITHUB_REPOSITORY|g" splitgraph.credentials.yml && ' | ||
'sed -i "s|\\$THIS_SHA|$GITHUB_SHA|g" splitgraph.yml', | ||
"shell": "bash", | ||
"env": { | ||
"CREDENTIALS_YML": "${{secrets.SPLITGRAPH_CREDENTIALS_YML}}", | ||
|
@@ -54,7 +55,7 @@ def generate_job( | |
steps.append( | ||
{ | ||
"name": "Run sgr cloud load to set up metadata and data source settings", | ||
"run": "sgr cloud load --remote splitgraph " | ||
"run": "sgr cloud load --remote splitgraph --initial-private " | ||
f"-f splitgraph.yml -f splitgraph.credentials.yml {repository}", | ||
"shell": "bash", | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,8 +18,8 @@ jobs: | |
env: | ||
CREDENTIALS_YML: ${{secrets.SPLITGRAPH_CREDENTIALS_YML}} | ||
- name: Run sgr cloud load to set up metadata and data source settings | ||
run: sgr cloud load --remote splitgraph -f splitgraph.yml -f splitgraph.credentials.yml | ||
myns/postgres_fdw | ||
run: sgr cloud load --remote splitgraph --initial-private -f splitgraph.yml | ||
-f splitgraph.credentials.yml myns/postgres_fdw | ||
shell: bash | ||
myns_airbyte_postgres: | ||
name: Build myns/airbyte-postgres | ||
|
@@ -58,7 +58,7 @@ jobs: | |
splitgraph_api_secret: ${{ secrets.SPLITGRAPH_API_SECRET }} | ||
- name: Set up dbt Git URL | ||
run: echo "$CREDENTIALS_YML" > splitgraph.credentials.yml && sed -i "s|\$THIS_REPO_URL|https://$GITHUB_ACTOR:[email protected]/$GITHUB_REPOSITORY|g" | ||
splitgraph.credentials.yml | ||
splitgraph.credentials.yml && sed -i "s|\$THIS_SHA|$GITHUB_SHA|g" splitgraph.yml | ||
shell: bash | ||
env: | ||
CREDENTIALS_YML: ${{secrets.SPLITGRAPH_CREDENTIALS_YML}} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.