Skip to content

Commit 3e3086b

Browse files
Build custom development image (#14)
1 parent 7e66c18 commit 3e3086b

8 files changed

Lines changed: 1129 additions & 691 deletions

File tree

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
jobs:
2+
job:
3+
runs-on: ubuntu-22.04
4+
steps:
5+
- uses: docker/login-action@v3
6+
with:
7+
password: ${{ github.token }}
8+
registry: ghcr.io
9+
username: ${{ github.actor }}
10+
- uses: docker/setup-buildx-action@v3
11+
- uses: docker/build-push-action@v6
12+
with:
13+
platforms: linux/amd64,linux/arm64
14+
push: true
15+
tags: ghcr.io/elimity-com/insights-client-js:${{ github.run_id }}
16+
17+
on: workflow_dispatch

.github/workflows/pull_request.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
jobs:
22
eslint:
3-
container: node@sha256:db5dd2f30cb82a8bdbd16acd4a8f3f2789f5b24f6ce43f98aa041be848c82e45
3+
container: ghcr.io/elimity-com/insights-client-js:21215375943
44
runs-on: ubuntu-22.04
55
steps:
66
- uses: actions/checkout@v4
77
- run: npm ci
88
- run: npx eslint .
99

1010
openapi-ts:
11-
container: node@sha256:db5dd2f30cb82a8bdbd16acd4a8f3f2789f5b24f6ce43f98aa041be848c82e45
11+
container: ghcr.io/elimity-com/insights-client-js:21215375943
1212
runs-on: ubuntu-22.04
1313
steps:
1414
- uses: actions/checkout@v4
@@ -17,15 +17,15 @@ jobs:
1717
- run: git -c safe.directory=/__w/insights-client-js/insights-client-js diff --quiet
1818

1919
prettier:
20-
container: node@sha256:db5dd2f30cb82a8bdbd16acd4a8f3f2789f5b24f6ce43f98aa041be848c82e45
20+
container: ghcr.io/elimity-com/insights-client-js:21215375943
2121
runs-on: ubuntu-22.04
2222
steps:
2323
- uses: actions/checkout@v4
2424
- run: npm ci
2525
- run: npx prettier -c .
2626

2727
tsc:
28-
container: node@sha256:db5dd2f30cb82a8bdbd16acd4a8f3f2789f5b24f6ce43f98aa041be848c82e45
28+
container: ghcr.io/elimity-com/insights-client-js:21215375943
2929
runs-on: ubuntu-22.04
3030
steps:
3131
- uses: actions/checkout@v4

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
jobs:
22
job:
3-
container: node@sha256:db5dd2f30cb82a8bdbd16acd4a8f3f2789f5b24f6ce43f98aa041be848c82e45
3+
container: ghcr.io/elimity-com/insights-client-js:21215375943
44
runs-on: ubuntu-22.04
55
steps:
66
- uses: actions/checkout@v4

Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
FROM node:lts
2+
ADD https://staging.elimity.com/api/spec /root/swagger.json

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
services:
22
dev:
33
entrypoint: sleep infinity
4-
image: node@sha256:db5dd2f30cb82a8bdbd16acd4a8f3f2789f5b24f6ce43f98aa041be848c82e45
4+
image: ghcr.io/elimity-com/insights-client-js:21215375943
55
init: true
66
volumes:
77
- .:/app

openapi-ts.config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"client": "legacy/axios",
3-
"input": "https://staging.elimity.com/api/spec",
3+
"input": "/root/swagger.json",
44
"name": "Client",
55
"output": {
66
"format": "prettier",

0 commit comments

Comments
 (0)