Skip to content

Commit

Permalink
postgres: add v1.0.2 version (#234)
Browse files Browse the repository at this point in the history
Co-authored-by: Karthikeyan C <[email protected]>
  • Loading branch information
scriptnull and codingkarthik authored Aug 13, 2024
1 parent 8b02282 commit 023a1a3
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/registry-updates.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ jobs:
files: |
registry/**
- name: Print out all the changed filse
env:
ADDED_FILES: ${{ steps.connector-version-changed-files.outputs.added_files }}
Expand All @@ -52,7 +51,7 @@ jobs:
CHANGED_FILES_PATH: "changed_files.json"
PUBLICATION_ENV: "staging"
CONNECTOR_REGISTRY_GQL_URL: ${{ secrets.CONNECTOR_REGISTRY_GQL_URL }}
GCP_BUCKET_NAME: dev-connector-platform-registry
GCP_BUCKET_NAME: ${{ secrets.GCP_BUCKET_NAME }}
GCP_SERVICE_ACCOUNT_DETAILS: ${{ secrets.GCP_SERVICE_ACCOUNT_DETAILS }}
CONNECTOR_PUBLICATION_KEY: ${{ secrets.CONNECTOR_PUBLICATION_KEY }}
run: |
Expand Down
4 changes: 2 additions & 2 deletions registry-automation/cmd/ci.go
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ func uploadConnectorVersionPackage(client *storage.Client, connector Connector,
return connectorVersion, err
}

uploadedTgzUrl, err := uploadConnectorVersionDefinition(client, connector.Name, connector.Namespace, version, connectorMetadataTgzPath)
uploadedTgzUrl, err := uploadConnectorVersionDefinition(client, connector.Namespace, connector.Name, version, connectorMetadataTgzPath)
if err != nil {
return connectorVersion, fmt.Errorf("failed to upload the connector version definition - connector: %v version:%v - err: %v", connector.Name, version, err)
} else {
Expand Down Expand Up @@ -503,7 +503,7 @@ func updateRegistryGQL(payload []ConnectorVersion) error {

req := graphql.NewRequest(`
mutation InsertConnectorVersion($connectorVersion: [hub_registry_connector_version_insert_input!]!) {
insert_hub_registry_connector_version(objects: $connectorVersion, on_conflict: {constraint: connector_version_namespace_name_version_key, update_columns: [image, package_definition_url]}) {
insert_hub_registry_connector_version(objects: $connectorVersion, on_conflict: {constraint: connector_version_namespace_name_version_key, update_columns: [image, package_definition_url, is_multitenant]}) {
affected_rows
returning {
id
Expand Down
11 changes: 11 additions & 0 deletions registry/hasura/postgres/releases/v1.0.2/connector-packaging.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"version": "1.0.2",
"uri": "https://github.com/hasura/ndc-postgres/releases/download/v1.0.2/package.tar.gz",
"checksum": {
"type": "sha256",
"value": "38d4f4a843b3cc7c1b798c21594c8ffcbcd7595c5d456927ea61fe02a7f9d80f"
},
"source": {
"hash": "1378805c72a16934788d3ab6a5bc767f8f0b9741"
}
}

0 comments on commit 023a1a3

Please sign in to comment.