Skip to content

Commit 37117f4

Browse files
committed
wip
1 parent 1016c7e commit 37117f4

File tree

1 file changed

+19
-4
lines changed

1 file changed

+19
-4
lines changed

.github/workflows/build-interface.yml

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,28 @@
1-
name: Deploy Web Application
1+
name: Build webinterface docker
22

33
on:
44
push:
55
branches:
66
- main
77

88
jobs:
9-
trigger-build:
9+
build-docker:
1010
runs-on: ubuntu-latest
11-
1211
steps:
12+
- name: Checkout repository
13+
uses: actions/checkout@v3
14+
- name: Set up Node.js
15+
uses: actions/setup-node@v3
16+
with:
17+
node-version: 18
18+
- name: Create docker-build path
19+
-run: mkdir docker-uild
20+
- name: Install dependencies
21+
run: yarn install
22+
working-directory: frontend
23+
- name: Build WebInterface Frontend
24+
run: env REACT_APP_API_URL="" env BUILD_PATH="../../../docker-build" yarn workspace @lingodb/interface build
25+
working-directory: frontend
1326
- name: Authenticate GitHub CLI
1427
run: echo "${{ secrets.LINGODB_TOKEN }}" | gh auth login --with-token
1528
- name: Trigger build in Repo A
@@ -73,6 +86,8 @@ jobs:
7386
repos/lingo-db/lingodb-test-actions/actions/artifacts/$artifact_id/zip > artifact.zip
7487
7588
mkdir -p docker-build
76-
unzip artifact.zip -d docker-build
89+
unzip artifact.zip -d docker-build/lingodb-binaries
7790
7891
echo "Artifact extracted to docker-build directory."
92+
- name: Build docker
93+
run: docker build -t lingodb-webinterface .

0 commit comments

Comments
 (0)