Skip to content

Commit

Permalink
update version to v0.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
m-Bilal committed Jun 5, 2024
1 parent 9be1c8c commit 4b70712
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 8 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,19 +64,19 @@ NOTE: The Docker Container uses the NDC Open API Lambda Connector CLI internally

```
# get command documentation/help
docker run --rm ghcr.io/hasura/ndc-open-api-lambda:v0.1.0 update -h
docker run --rm ghcr.io/hasura/ndc-open-api-lambda:v0.1.1 update -h
# run the code generation (using env vars)
docker run --rm -v ./:/etc/connector/ -e NDC_OAS_DOCUMENT_URI=${url to open API document} ghcr.io/hasura/ndc-open-api-lambda:v0.1.0 update
docker run --rm -v ./:/etc/connector/ -e NDC_OAS_DOCUMENT_URI=${url to open API document} ghcr.io/hasura/ndc-open-api-lambda:v0.1.1 update
# run the code generation (using CLI flags)
docker run --rm -v ./:/etc/connector/ ghcr.io/hasura/ndc-open-api-lambda:v0.1.0 update --open-api ${url to open API document}
docker run --rm -v ./:/etc/connector/ ghcr.io/hasura/ndc-open-api-lambda:v0.1.1 update --open-api ${url to open API document}
# with baseUrl (using env vars)
docker run --rm -v ./:/etc/connector/ -e NDC_OAS_DOCUMENT_URI=${url to open API document} -e NDC_OAS_BASE_URL=http://demoapi.com/ ghcr.io/hasura/ndc-open-api-lambda:v0.1.0 update
docker run --rm -v ./:/etc/connector/ -e NDC_OAS_DOCUMENT_URI=${url to open API document} -e NDC_OAS_BASE_URL=http://demoapi.com/ ghcr.io/hasura/ndc-open-api-lambda:v0.1.1 update
# with baseUrl (using CLI flags)
docker run --rm -v ./:/etc/connector/ ghcr.io/hasura/ndc-open-api-lambda:v0.1.0 update --open-api ${url to open API document} --base-url http://demoapi.com/
docker run --rm -v ./:/etc/connector/ ghcr.io/hasura/ndc-open-api-lambda:v0.1.1 update --open-api ${url to open API document} --base-url http://demoapi.com/
```

## Build and Run
Expand Down
2 changes: 2 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

## Unreleased

## [[0.1.1](https://github.com/hasura/ndc-open-api-lambda/releases/tag/v0.1.1)] 2024-06-05

- remove unused imports, organize imports and fix import issues ([#32](https://github.com/hasura/ndc-open-api-lambda/pull/32))

## [[0.1.0](https://github.com/hasura/ndc-open-api-lambda/releases/tag/v0.1.0)] 2024-06-03
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ supportedEnvironmentVariables:
description: "Overwrite previously generated functions.ts file and api.ts file"
default: "false"
commands:
update: "docker run --rm -e HASURA_PLUGIN_CONNECTOR_CONTEXT_PATH -e NDC_OAS_BASE_URL -e NDC_OAS_DOCUMENT_URI -e NDC_OAS_LAMBDA_PRETTY_LOGS -e NDC_OAS_FILE_OVERWRITE -v ${HASURA_PLUGIN_CONNECTOR_CONTEXT_PATH}:/etc/connector ghcr.io/hasura/ndc-open-api-lambda:v0.1.0 update"
update: "docker run --rm -e HASURA_PLUGIN_CONNECTOR_CONTEXT_PATH -e NDC_OAS_BASE_URL -e NDC_OAS_DOCUMENT_URI -e NDC_OAS_LAMBDA_PRETTY_LOGS -e NDC_OAS_FILE_OVERWRITE -v ${HASURA_PLUGIN_CONNECTOR_CONTEXT_PATH}:/etc/connector ghcr.io/hasura/ndc-open-api-lambda:v0.1.1 update"
dockerComposeWatch:
# Rebuild the container if a new package restore is required because package[-lock].json changed
- path: package.json
Expand Down
4 changes: 3 additions & 1 deletion release.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,11 @@ The NDC Open API Lambda Connector uses GitHub Releases for release management.
5. Build a cross platform Docker Image using the command `docker buildx build --platform=linux/amd64,linux/arm64 -t ghcr.io/hasura/ndc-open-api-lambda:${git-tag} .`
6. Publish a Docker Image to GHCR with the name `ghcr.io/hasura/ndc-open-api-lambda` and the version tagged with the Git Tag using `docker push ${image:tag}`. More on [GHRC](https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-container-registry)
7. Update [Changelog](./changelog.md)
8. Create .tgz file of `connector-definition` using the commands (MacOS)
8. Create .tgz file of `connector-definition` using the commands (MacOS)

```
$ cd ndc-open-api-lambda/connector-definition
$ tar -czf connector-definition.tgz .hasura-connector
```

9. Create a GitHub Release and add the .tgz file as an asset
2 changes: 1 addition & 1 deletion src/cli/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import * as updateCmd from "./update";
import { exec, execSync } from "child_process";

export const program = new Command()
.version("0.1.0")
.version("0.1.1")
.description("OAS Connector CLI")
// .addCommand(initCmd.cmd) TODO: Enable when required by the CLI spec
.addCommand(updateCmd.cmd)
Expand Down

0 comments on commit 4b70712

Please sign in to comment.