Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bump ndc-rest v0.1.2 #2

Merged
merged 1 commit into from
Apr 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
FROM ghcr.io/hasura/ndc-rest:v0.1.1
FROM ghcr.io/hasura/ndc-rest:v0.1.2

COPY ./config /config
8 changes: 6 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
STRIPE_VERSION ?= v956
NDC_REST_VERSION ?= v0.1.1
NDC_REST_VERSION ?= v0.1.2
UID ?= $(shell id -u)
GID ?= $(shell id -g)

Expand All @@ -9,4 +9,8 @@ build-schema:
-f https://raw.githubusercontent.com/stripe/openapi/$(STRIPE_VERSION)/openapi/spec3.json \
--trim-prefix /v1 --spec openapi3 \
--env-prefix STRIPE \
-o /home/config/schema.json
-o /home/config/schema.json

.PHONY: update-deps
update-deps:
VERSION=$(NDC_REST_VERSION) scripts/update-deps.sh
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@ docker-compose up -d --build

The connector serves the HTTP service at `http://localhost:8080` and connect to the internal `stripe-mock` service.

### Update dependencies

```sh
NDC_REST_VERSION=\<version\> make update-deps
```

### Update schema

Update `VERSION` in [Makefile](./Makefile) and run:
Expand Down
9 changes: 9 additions & 0 deletions scripts/update-deps.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash

if [ -z "$VERSION" ]; then
echo "VERSION env variable is required"
exit 1
fi

sed -i -r "s/v[0-9.]+$/$VERSION/" Dockerfile
sed -i -r "s/NDC_REST_VERSION\s+\?\=\s+[a-z0-9.]+$/NDC_REST_VERSION ?= $VERSION/" Makefile