Skip to content

Commit

Permalink
fix update command to not require interactive terminal
Browse files Browse the repository at this point in the history
  • Loading branch information
TristenHarr committed Mar 13, 2024
1 parent 2af9e67 commit a153572
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ This changelog documents changes between release tags.
## [Unreleased]
Upcoming changes for the next versioned release.

## [0.0.8]
* Update connector-metadata.yaml

## [0.0.7]
* Fix the connector-metadata.yaml
* Add check for if environment variables are a blank string for optional env vars
Expand Down
4 changes: 2 additions & 2 deletions connector-definition/connector-metadata.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
packagingDefinition:
type: PrebuiltDockerImage
dockerImage: ghcr.io/hasura/ndc-turso:v0.0.7
dockerImage: ghcr.io/hasura/ndc-turso:v0.0.8
supportedEnvironmentVariables:
- name: TURSO_URL
description: The url for the Turso database
Expand All @@ -9,7 +9,7 @@ supportedEnvironmentVariables:
- name: TURSO_SYNC_URL
description: The Sync URL for Turso for replicas
commands:
update: docker run -it --rm -e TURSO_URL="$TURSO_URL" -e TURSO_AUTH_TOKEN="$TURSO_AUTH_TOKEN" -e TURSO_SYNC_URL="$TURSO_SYNC_URL" -v "$HASURA_PLUGIN_CONNECTOR_CONTEXT_PATH":/etc/connector ghcr.io/hasura/ndc-turso:v0.0.7 update
update: docker run --rm -e TURSO_URL="$TURSO_URL" -e TURSO_AUTH_TOKEN="$TURSO_AUTH_TOKEN" -e TURSO_SYNC_URL="$TURSO_SYNC_URL" -v "$HASURA_PLUGIN_CONNECTOR_CONTEXT_PATH":/etc/connector ghcr.io/hasura/ndc-turso:v0.0.8 update
dockerComposeWatch:
- path: ./
target: /etc/connector
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ndc-turso",
"version": "0.0.7",
"version": "0.0.8",
"main": "index.js",
"author": "Tristen Harr",
"scripts": {},
Expand Down

0 comments on commit a153572

Please sign in to comment.