Skip to content

Commit

Permalink
yarn cache (node_modules) directory should already exist, so yarn ins…
Browse files Browse the repository at this point in the history
…tall should be a noop.
  • Loading branch information
AnalogJ committed Jan 26, 2023
1 parent 0a5dd6a commit 04c3c4d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 19 deletions.
19 changes: 9 additions & 10 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,15 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v2
# - name: "Populate frontend version information"
# run: "cd webapp/frontend && ./git.version.sh"
# - name: "Generate frontend & version information"
# uses: addnab/docker-run-action@v3
# with:
# image: node:lts
# options: -v ${{ github.workspace }}:/work
# run: |
# cd /work
# make binary-frontend && echo "print contents of /work/dist" && ls -alt /work/dist
- name: Set Node.js 18.x
uses: actions/setup-node@v3
with:
node-version: 18.x
- name: Create Yarn Cache
run: |
cd frontend
yarn install --frozen-lockfile
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
with:
Expand Down
12 changes: 3 additions & 9 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,10 @@
FROM node:18 as frontend-build
ARG FASTEN_ENV=sandbox
WORKDIR /usr/src/fastenhealth/frontend
COPY frontend/package.json frontend/yarn.lock ./

RUN yarn --version && \
yarn config delete proxy && \
yarn config delete https-proxy && \
yarn config set registry 'http://registry.npmjs.org' && \
yarn config list && \
yarn install
COPY frontend/ ./
RUN yarn run build -- --configuration ${FASTEN_ENV} --output-path=../dist

RUN yarn install --frozen-lockfile && \
yarn run build -- --configuration ${FASTEN_ENV} --output-path=../dist

#########################################################################################################
# Backend Build
Expand Down

0 comments on commit 04c3c4d

Please # to comment.