Skip to content

Commit

Permalink
bump ndc-rest v0.1.2 (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
hgiasac committed Apr 17, 2024
1 parent 61bf8d2 commit 9313676
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 3 deletions.
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

0 comments on commit 9313676

Please sign in to comment.