Skip to content

Commit 315a76e

Browse files
authored
chore(ci): Trying to fix release with workaround for yarn v1 (#6237)
1 parent 6b05147 commit 315a76e

File tree

7 files changed

+9
-9
lines changed

7 files changed

+9
-9
lines changed

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ jobs:
238238
fail-fast: false
239239
matrix:
240240
include:
241-
- os: ubuntu-20.04
241+
- os: ubuntu-22.04
242242
target: x86_64-unknown-linux-gnu
243243
platforms: linux/amd64,linux/arm64
244244
timeout-minutes: 30

.github/workflows/push.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -544,7 +544,7 @@ jobs:
544544
needs: [latest-tag-sha]
545545
if: (needs['latest-tag-sha'].outputs.sha != github.sha)
546546
name: Build & Test :dev for ${{ matrix.name }} without pushing
547-
runs-on: ubuntu-20.04
547+
runs-on: ubuntu-22.04
548548
timeout-minutes: 60
549549
services:
550550
registry:

packages/cubejs-docker/latest-alpine-jdk.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ ENV PATH "$JAVA_HOME/bin:${PATH}"
1717

1818
# We are copying root yarn.lock file to the context folder during the Publish GH
1919
# action. So, a process will use the root lock file here.
20-
RUN yarn install && yarn cache clean
20+
RUN yarn install --prod && yarn cache clean
2121

2222
FROM node:16.19.1-alpine3.17
2323

packages/cubejs-docker/latest-alpine.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ RUN apk update \
1414

1515
# We are copying root yarn.lock file to the context folder during the Publish GH
1616
# action. So, a process will use the root lock file here.
17-
RUN yarn install && yarn cache clean
17+
RUN yarn install --prod && yarn cache clean
1818

1919
FROM node:16.19.1-alpine3.17
2020

packages/cubejs-docker/latest-debian-jdk.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ RUN apt-get update \
1515

1616
# We are copying root yarn.lock file to the context folder during the Publish GH
1717
# action. So, a process will use the root lock file here.
18-
RUN yarn install && yarn cache clean
18+
RUN yarn install --prod && yarn cache clean
1919

2020
FROM node:16.19.1-bullseye-slim
2121

packages/cubejs-docker/latest.Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ WORKDIR /cube
44
COPY . .
55

66
RUN yarn policies set-version v1.22.19
7+
# Yarn v1 uses aggressive timeouts with summing time spending on fs, https://github.com/yarnpkg/yarn/issues/4890
8+
RUN yarn config set network-timeout 120000 -g
79

810
# Required for node-oracledb to buld on ARM64
911
RUN apt-get update \
@@ -12,9 +14,7 @@ RUN apt-get update \
1214

1315
# We are copying root yarn.lock file to the context folder during the Publish GH
1416
# action. So, a process will use the root lock file here.
15-
RUN yarn install && yarn cache clean
16-
# Yarn v1 uses aggressive timeouts with summing time spending on fs, https://github.com/yarnpkg/yarn/issues/4890
17-
RUN yarn config set network-timeout 120000 -g
17+
RUN yarn install --prod && yarn cache clean
1818

1919
FROM node:16.19.1-bullseye-slim
2020

packages/cubejs-docker/local.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ RUN apt-get update \
3535

3636
# We are copying root yarn.lock file to the context folder during the Publish GH
3737
# action. So, a process will use the root lock file here.
38-
RUN yarn install && yarn cache clean && yarn link:dev
38+
RUN yarn install --prod && yarn cache clean && yarn link:dev
3939

4040
# By default Node dont search in parent directory from /cube/conf, @todo Reaserch a little bit more
4141
ENV NODE_PATH /cube/conf/node_modules:/cube/node_modules

0 commit comments

Comments
 (0)