Apply env var approach to CI and Dockerfile
All checks were successful
Run Tests on Code / test (push) Successful in 24s
All checks were successful
Run Tests on Code / test (push) Successful in 24s
This commit is contained in:
parent
6e7fe75654
commit
103cfa5872
3 changed files with 14 additions and 2 deletions
|
@ -58,7 +58,10 @@ jobs:
|
||||||
run: yarn build
|
run: yarn build
|
||||||
|
|
||||||
- name: Start Server
|
- name: Start Server
|
||||||
run: yarn preview &
|
run: |
|
||||||
|
export KUMA_USERNAME=${{ secrets.KUMA_USERNAME }}
|
||||||
|
export KUMA_PASSWORD=${{ secrets.KUMA_PASSWORD }}
|
||||||
|
yarn preview &
|
||||||
|
|
||||||
- name: Run Unlighthouse for Desktop
|
- name: Run Unlighthouse for Desktop
|
||||||
run: unlighthouse-ci --build-static --desktop --outputPath reports/desktop
|
run: unlighthouse-ci --build-static --desktop --outputPath reports/desktop
|
||||||
|
@ -66,6 +69,8 @@ jobs:
|
||||||
- name: Refresh Server
|
- name: Refresh Server
|
||||||
run: |
|
run: |
|
||||||
if ! pgrep -f "node /usr/bin/yarn" ; then
|
if ! pgrep -f "node /usr/bin/yarn" ; then
|
||||||
|
export KUMA_USERNAME=${{ secrets.KUMA_USERNAME }}
|
||||||
|
export KUMA_PASSWORD=${{ secrets.KUMA_PASSWORD }}
|
||||||
yarn preview &
|
yarn preview &
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
@ -59,7 +59,10 @@ jobs:
|
||||||
run: yarn build
|
run: yarn build
|
||||||
|
|
||||||
- name: Start Server
|
- name: Start Server
|
||||||
run: yarn preview &
|
run: |
|
||||||
|
export KUMA_USERNAME=${{ secrets.KUMA_USERNAME }}
|
||||||
|
export KUMA_PASSWORD=${{ secrets.KUMA_PASSWORD }}
|
||||||
|
yarn preview &
|
||||||
|
|
||||||
- name: Run Unlighthouse for Desktop
|
- name: Run Unlighthouse for Desktop
|
||||||
run: unlighthouse-ci --build-static --desktop --outputPath reports/desktop
|
run: unlighthouse-ci --build-static --desktop --outputPath reports/desktop
|
||||||
|
@ -67,6 +70,8 @@ jobs:
|
||||||
- name: Refresh Server
|
- name: Refresh Server
|
||||||
run: |
|
run: |
|
||||||
if ! pgrep -f "node /usr/bin/yarn" ; then
|
if ! pgrep -f "node /usr/bin/yarn" ; then
|
||||||
|
export KUMA_USERNAME=${{ secrets.KUMA_USERNAME }}
|
||||||
|
export KUMA_PASSWORD=${{ secrets.KUMA_PASSWORD }}
|
||||||
yarn preview &
|
yarn preview &
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
@ -14,6 +14,8 @@ WORKDIR /app
|
||||||
COPY --from=build /app .
|
COPY --from=build /app .
|
||||||
|
|
||||||
ENV NODE_ENV production
|
ENV NODE_ENV production
|
||||||
|
ENV KUMA_USERNAME ''
|
||||||
|
ENV KUMA_PASSWORD ''
|
||||||
|
|
||||||
EXPOSE 8000
|
EXPOSE 8000
|
||||||
CMD ["yarn", "preview"]
|
CMD ["yarn", "preview"]
|
Loading…
Reference in a new issue