Skip to content

Commit 78cb202

Browse files
committed
build: deployment fixes
Signed-off-by: Wouter Termont <woutermont@gmail.com>
1 parent ddabf8e commit 78cb202

File tree

4 files changed

+43
-2
lines changed

4 files changed

+43
-2
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ jobs:
103103

104104
publish-docker:
105105
name: Publish Docker image
106-
needs: release
106+
needs: publish-npm
107107
runs-on: ubuntu-latest
108108
if: startsWith(github.ref, 'refs/tags/')
109109

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# compiled output
2+
#/dist
3+
/node_modules
4+
5+
# Logs
6+
logs
7+
*.log
8+
npm-debug.log*
9+
yarn-debug.log*
10+
yarn-error.log*
11+
lerna-debug.log*
12+
13+
# OS
14+
.DS_Store
15+
16+
# Tests
17+
/coverage
18+
/.nyc_output
19+
20+
# IDEs and editors
21+
/.idea
22+
.project
23+
.classpath
24+
.c9/
25+
*.launch
26+
.settings/
27+
*.sublime-workspace
28+
29+
# IDE - VSCode
30+
.vscode/*
31+
!.vscode/tasks.json
32+
!.vscode/launch.json
33+
!.vscode/extensions.json
34+
35+
yarn-error.log
36+
yarn.lock

packages/semcom-demo-app/Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ COPY . /usr/src/app
1818
RUN rm -f /usr/src/app/.npmrc
1919
RUN npm run build
2020

21+
# Set node url
22+
ARG NODE_URL=https://node.semcom.digita.ai
23+
RUN /bin/sh -c 'echo "{ \"semcom-node\": \"${NODE_URL}}\" }" > /usr/src/app/dist/assets/config.json'
24+
2125
# Expose ports.
2226
EXPOSE 4200
2327
CMD npm start

packages/semcom-demo-app/src/app/services/semcom.service.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ import { fetch as inruptFetch } from '@inrupt/solid-client-authn-browser';
99
export class SemComService {
1010

1111
private registry: AbstractRegisterComponentService = new RegisterComponentService();
12-
private repo: QueryComponentService = new QueryComponentRemoteService('http://localhost:3000');
12+
//private repo: QueryComponentService = new QueryComponentRemoteService('http://localhost:3000');
13+
private repo: QueryComponentService = new QueryComponentRemoteService('https://node.semcom.digita.ai');
1314

1415
detectShapes(uri: string): Observable<string[]> {
1516
return from(resourceShape(uri, inruptFetch));

0 commit comments

Comments
 (0)