Merge pull request #12047 from Budibase/fix/single-image-timeout

Buildx yarn timeouts - attempting fix (single image build)
This commit is contained in:
Michael Drury 2023-10-12 13:48:35 +01:00 committed by GitHub
commit b9d2a00d7d
2 changed files with 2 additions and 14 deletions

View File

@ -33,14 +33,6 @@ jobs:
with:
submodules: true
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
fetch-depth: 0
- name: Fail if tag is not in master
run: |
if ! git merge-base --is-ancestor ${{ github.sha }} origin/master; then
echo "Tag is not in master. This pipeline can only execute tags that are present on the master branch"
exit 1
fi
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
@ -55,10 +47,6 @@ jobs:
run: yarn
- name: Update versions
run: ./scripts/updateVersions.sh
- name: Runt Yarn Lint
run: yarn lint
- name: Update versions
run: ./scripts/updateVersions.sh
- name: Run Yarn Build
run: yarn build:docker:pre
- name: Login to Docker Hub

View File

@ -12,14 +12,14 @@ RUN chmod +x /cleanup.sh
WORKDIR /app
ADD packages/server .
COPY yarn.lock .
RUN yarn install --production=true
RUN yarn install --production=true --network-timeout 100000
RUN /cleanup.sh
# build worker
WORKDIR /worker
ADD packages/worker .
COPY yarn.lock .
RUN yarn install --production=true
RUN yarn install --production=true --network-timeout 100000
RUN /cleanup.sh
FROM budibase/couchdb