File tree 6 files changed +2139
-2041
lines changed
6 files changed +2139
-2041
lines changed Original file line number Diff line number Diff line change @@ -12,14 +12,17 @@ jobs:
12
12
13
13
strategy :
14
14
matrix :
15
- node-version : [16 .x]
15
+ node-version : [18 .x]
16
16
17
17
steps :
18
- - uses : actions/checkout@v2
18
+ - uses : actions/checkout@v3
19
+
19
20
- name : Use Node.js ${{ matrix.node-version }}
20
- uses : actions/setup-node@v2
21
+ uses : actions/setup-node@v3
21
22
with :
22
23
node-version : ${{ matrix.node-version }}
24
+ cache : " npm"
25
+ cache-dependency-path : frontend/package-lock.json
23
26
24
27
- name : Install npm dependencies
25
28
run : npm install
Original file line number Diff line number Diff line change @@ -12,19 +12,20 @@ jobs:
12
12
poetry-version : [1.1.15]
13
13
14
14
steps :
15
- - uses : actions/checkout@v2
16
- - uses : actions/setup-python@v2
17
- with :
18
- python-version : ${{ matrix.python-version }}
15
+ - uses : actions/checkout@v3
19
16
20
- - name : Run image
21
- uses : abatilo/actions-poetry@v2.1.4
17
+ - name : Setup poetry
18
+ uses : abatilo/actions-poetry@v2
22
19
with :
23
20
poetry-version : ${{ matrix.poetry-version }}
24
21
25
- - name : Install
26
- run : |
27
- poetry install
22
+ - uses : actions/setup-python@v4
23
+ with :
24
+ python-version : ${{ matrix.python-version }}
25
+ cache : " poetry"
26
+
27
+ - name : Install dependencies
28
+ run : poetry install
28
29
29
30
- name : Run tests
30
31
run : |
Original file line number Diff line number Diff line change 1
1
# build env
2
- FROM node:18-alpine as build
2
+ FROM node:18-buster-slim as build
3
3
4
4
COPY ./frontend /frontend
5
5
WORKDIR /frontend
6
+ ENV NODE_OPTIONS --openssl-legacy-provider
6
7
RUN npm install && npm run build && rm -rf node_modules
7
8
8
9
# prod env
@@ -21,8 +22,8 @@ COPY pyproject.toml poetry.lock /backend/
21
22
COPY gunicorn.conf.py /backend
22
23
COPY app /backend/app
23
24
24
- RUN pip3 install poetry==1.1.15 && poetry config virtualenvs.create false && poetry install --no-dev
25
- RUN pip3 install circus
25
+ RUN pip install poetry==1.1.15 && poetry config virtualenvs.create false && poetry install --no-dev
26
+ RUN pip install circus
26
27
27
28
COPY circus.ini /etc/circus.ini
28
29
Original file line number Diff line number Diff line change 1
1
# build env
2
- FROM node:18-alpine as build
2
+ FROM node:18-buster-slim as build
3
3
4
4
COPY ./frontend /frontend
5
5
WORKDIR /frontend
6
+ ENV NODE_OPTIONS --openssl-legacy-provider
6
7
RUN npm install && npm run build && rm -rf node_modules
7
8
8
9
# prod env
@@ -19,7 +20,7 @@ COPY pyproject.toml poetry.lock /backend/
19
20
COPY gunicorn.conf.py /backend
20
21
COPY app /backend/app
21
22
22
- RUN pip3 install poetry==1.1.15 && poetry config virtualenvs.create false && poetry install --no-dev
23
+ RUN pip install poetry==1.1.15 && poetry config virtualenvs.create false && poetry install --no-dev
23
24
24
25
COPY --from=build /frontend /backend/frontend
25
26
You can’t perform that action at this time.
0 commit comments