Skip to content

Commit 9313676

Browse files
authored
bump ndc-rest v0.1.2 (#2)
1 parent 61bf8d2 commit 9313676

File tree

4 files changed

+22
-3
lines changed

4 files changed

+22
-3
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
FROM ghcr.io/hasura/ndc-rest:v0.1.1
1+
FROM ghcr.io/hasura/ndc-rest:v0.1.2
22

33
COPY ./config /config

Makefile

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
STRIPE_VERSION ?= v956
2-
NDC_REST_VERSION ?= v0.1.1
2+
NDC_REST_VERSION ?= v0.1.2
33
UID ?= $(shell id -u)
44
GID ?= $(shell id -g)
55

@@ -9,4 +9,8 @@ build-schema:
99
-f https://raw.githubusercontent.com/stripe/openapi/$(STRIPE_VERSION)/openapi/spec3.json \
1010
--trim-prefix /v1 --spec openapi3 \
1111
--env-prefix STRIPE \
12-
-o /home/config/schema.json
12+
-o /home/config/schema.json
13+
14+
.PHONY: update-deps
15+
update-deps:
16+
VERSION=$(NDC_REST_VERSION) scripts/update-deps.sh

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,12 @@ docker-compose up -d --build
2828

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

31+
### Update dependencies
32+
33+
```sh
34+
NDC_REST_VERSION=\<version\> make update-deps
35+
```
36+
3137
### Update schema
3238

3339
Update `VERSION` in [Makefile](./Makefile) and run:

scripts/update-deps.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/bin/bash
2+
3+
if [ -z "$VERSION" ]; then
4+
echo "VERSION env variable is required"
5+
exit 1
6+
fi
7+
8+
sed -i -r "s/v[0-9.]+$/$VERSION/" Dockerfile
9+
sed -i -r "s/NDC_REST_VERSION\s+\?\=\s+[a-z0-9.]+$/NDC_REST_VERSION ?= $VERSION/" Makefile

0 commit comments

Comments
 (0)