Skip to content

Commit

Permalink
Add releases folder for azure-cosmos and mysql (#233)
Browse files Browse the repository at this point in the history
  • Loading branch information
codingkarthik authored Aug 13, 2024
1 parent fea5f1d commit e67621a
Show file tree
Hide file tree
Showing 6 changed files with 55 additions and 24 deletions.
12 changes: 10 additions & 2 deletions registry-automation/cmd/ci.go
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,7 @@ func buildRegistryPayload(
uploadedConnectorDefinitionTgzUrl string,
) (ConnectorVersion, error) {
var connectorVersion ConnectorVersion
var connectorVersionDockerImage string
var connectorVersionDockerImage string = ""
connectorVersionPackagingDefinition, ok := connectorVersionMetadata["packagingDefinition"].(map[interface{}]interface{})
if !ok {
return connectorVersion, fmt.Errorf("could not find the 'packagingDefinition' of the connector %s version %s in the connector's metadata", connectorName, version)
Expand Down Expand Up @@ -483,11 +483,19 @@ func buildRegistryPayload(
connectorVersionType = ManagedDockerBuild
}

var connectorVersionImage *string

if connectorVersionDockerImage == "" {
connectorVersionImage = nil
} else {
connectorVersionImage = &connectorVersionDockerImage
}

connectorVersion = ConnectorVersion{
Namespace: connectorNamespace,
Name: connectorName,
Version: version,
Image: &connectorVersionDockerImage,
Image: connectorVersionImage,
PackageDefinitionURL: uploadedConnectorDefinitionTgzUrl,
IsMultitenant: connectorInfo.HubRegistryConnector[0].MultitenantConnector != nil,
Type: connectorVersionType,
Expand Down
23 changes: 1 addition & 22 deletions registry/hasura/azure-cosmos/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,28 +15,7 @@
"is_verified": true,
"is_hosted_by_hasura": true,
"packages": [
{
"version": "0.1.3",
"uri": "https://github.com/hasura/ndc-azure-cosmos-connector/releases/download/v0.1.3/connector-definition.tgz",
"checksum": {
"type": "sha256",
"value": "34655ff615be0d5738ffe1811972776808e9880a6fa3ec673123844c648154d7"
},
"source": {
"hash": "97032d1a41fd932d637b5ba24ca6611d9e1f4905"
}
},
{
"version": "0.1.2",
"uri": "https://github.com/hasura/ndc-azure-cosmos-connector/releases/download/v0.1.2/connector-definition.tgz",
"checksum": {
"type": "sha256",
"value": "09ce246a9039d2aaf799a7e0402b243fb3763ba802535348a9fee243de1bf1b7"
},
"source": {
"hash": "f67b2f80d64175a055a9489d4e59f30d5d3870a0"
}
}

],
"source_code": {
"is_open_source": true,
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"version": "0.1.2",
"uri": "https://github.com/hasura/ndc-azure-cosmos-connector/releases/download/v0.1.2/connector-definition.tgz",
"checksum": {
"type": "sha256",
"value": "09ce246a9039d2aaf799a7e0402b243fb3763ba802535348a9fee243de1bf1b7"
},
"source": {
"hash": "f67b2f80d64175a055a9489d4e59f30d5d3870a0"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"version": "0.1.3",
"uri": "https://github.com/hasura/ndc-azure-cosmos-connector/releases/download/v0.1.3/connector-definition.tgz",
"checksum": {
"type": "sha256",
"value": "34655ff615be0d5738ffe1811972776808e9880a6fa3ec673123844c648154d7"
},
"source": {
"hash": "97032d1a41fd932d637b5ba24ca6611d9e1f4905"
}
}
11 changes: 11 additions & 0 deletions registry/hasura/mysql/releases/v0.1.0/connector-packaging.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"version": "0.1.0",
"uri": "https://github.com/hasura/ndc-jvm-mono/releases/download/mysql%2Fv0.1.0/package.tar.gz",
"checksum": {
"type": "sha256",
"value": "09b51f9be725099345159880d21efb712776bfd09291a0daa81d7e7b1418ca2c"
},
"source": {
"hash": "145792746281b606bcef2dfe20d1f0ad69efe01e"
}
}
11 changes: 11 additions & 0 deletions registry/hasura/oracle/releases/v0.1.0/connector-packaging.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"version": "0.1.0",
"uri": "https://github.com/hasura/ndc-jvm-mono/releases/download/oracle%2Fv0.1.0/package.tar.gz",
"checksum": {
"type": "sha256",
"value": "0d837408a213f55df34062b96a2ac7fabcf8c61891918b6b2754d90fc61dd24c"
},
"source": {
"hash": "145792746281b606bcef2dfe20d1f0ad69efe01e"
}
}

0 comments on commit e67621a

Please sign in to comment.