@@ -144,35 +144,8 @@ jobs:
144144 cd src/
145145 coveralls --service=github
146146
147- frontend :
148- runs-on : ubuntu-20.04
149- steps :
150- -
151- name : Checkout
152- uses : actions/checkout@v2
153- -
154- uses : actions/setup-node@v2
155- with :
156- node-version : ' 15'
157- -
158- name : Configure version on dev branches
159- if : startsWith(github.ref, 'refs/heads/feature-') || github.ref == 'refs/heads/dev'
160- run : |
161- git_hash=$(git rev-parse --short "$GITHUB_SHA")
162- git_branch=${GITHUB_REF#refs/heads/}
163- sed -i -E "s/version: \"(.*)\"/version: \"${git_branch} ${git_hash}\"/g" src-ui/src/environments/environment.prod.ts
164- -
165- name : Build frontend
166- run : ./compile-frontend.sh
167- -
168- name : Upload artifact
169- uses : actions/upload-artifact@v2
170- with :
171- name : frontend-compiled
172- path : src/documents/static/frontend/
173-
174147 build-release :
175- needs : [frontend , documentation, tests, whitespace, codestyle]
148+ needs : [build-docker-image , documentation, tests, whitespace, codestyle]
176149 runs-on : ubuntu-20.04
177150 steps :
178151 -
@@ -183,6 +156,10 @@ jobs:
183156 uses : actions/setup-python@v2
184157 with :
185158 python-version : 3.7
159+ -
160+ uses : actions/setup-node@v2
161+ with :
162+ node-version : ' 15'
186163 -
187164 name : Install dependencies
188165 run : |
@@ -282,7 +259,7 @@ jobs:
282259 build-docker-image :
283260 if : github.event_name == 'push' && (startsWith(github.ref, 'refs/heads/feature-') || github.ref == 'refs/heads/dev' || startsWith(github.ref, 'refs/tags/ng-'))
284261 runs-on : ubuntu-latest
285- needs : [frontend, tests, whitespace, codestyle]
262+ needs : [tests, whitespace, codestyle]
286263 steps :
287264 -
288265 name : Prepare
@@ -303,12 +280,6 @@ jobs:
303280 -
304281 name : Checkout
305282 uses : actions/checkout@v2
306- -
307- name : Download frontend artifact
308- uses : actions/download-artifact@v2
309- with :
310- name : frontend-compiled
311- path : src/documents/static/frontend/
312283 -
313284 name : Set up Docker Buildx
314285 uses : docker/setup-buildx-action@v1
@@ -344,3 +315,13 @@ jobs:
344315 name : Inspect image
345316 run : |
346317 docker buildx imagetools inspect ${{ steps.prepare.outputs.inspect_tag }}
318+ -
319+ name : Export frontend artifact from docker
320+ run : |
321+ docker cp ${{ steps.prepare.outputs.tags }}:/src/src/documents/static/frontend/ src/documents/static/frontend/
322+ -
323+ name : Upload frontend artifact
324+ uses : actions/upload-artifact@v2
325+ with :
326+ name : frontend-compiled
327+ path : src/documents/static/frontend/
0 commit comments