From 023a1a3d967ce6ae14404d44eafd40cb42499046 Mon Sep 17 00:00:00 2001 From: Vishnu Bharathi Date: Tue, 13 Aug 2024 15:57:20 +0530 Subject: [PATCH] postgres: add v1.0.2 version (#234) Co-authored-by: Karthikeyan C --- .github/workflows/registry-updates.yaml | 3 +-- registry-automation/cmd/ci.go | 4 ++-- .../postgres/releases/v1.0.2/connector-packaging.json | 11 +++++++++++ 3 files changed, 14 insertions(+), 4 deletions(-) create mode 100644 registry/hasura/postgres/releases/v1.0.2/connector-packaging.json diff --git a/.github/workflows/registry-updates.yaml b/.github/workflows/registry-updates.yaml index 56a6af14..6c95b010 100644 --- a/.github/workflows/registry-updates.yaml +++ b/.github/workflows/registry-updates.yaml @@ -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 }} @@ -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: | diff --git a/registry-automation/cmd/ci.go b/registry-automation/cmd/ci.go index 5f701888..d80dd6e6 100644 --- a/registry-automation/cmd/ci.go +++ b/registry-automation/cmd/ci.go @@ -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 { @@ -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 diff --git a/registry/hasura/postgres/releases/v1.0.2/connector-packaging.json b/registry/hasura/postgres/releases/v1.0.2/connector-packaging.json new file mode 100644 index 00000000..6ecbb324 --- /dev/null +++ b/registry/hasura/postgres/releases/v1.0.2/connector-packaging.json @@ -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" + } +}