build(aio): freeze yarn lockfile for aio-builds-setup scripts (#19616)
PR Close #19616
This commit is contained in:
parent
ad7e781a18
commit
dc038113a5
|
@ -156,7 +156,7 @@ RUN find $AIO_SCRIPTS_SH_DIR -maxdepth 1 -type f -printf "%P\n" \
|
||||||
# Set up the Node.js scripts
|
# Set up the Node.js scripts
|
||||||
COPY scripts-js/ $AIO_SCRIPTS_JS_DIR/
|
COPY scripts-js/ $AIO_SCRIPTS_JS_DIR/
|
||||||
WORKDIR $AIO_SCRIPTS_JS_DIR/
|
WORKDIR $AIO_SCRIPTS_JS_DIR/
|
||||||
RUN yarn install --production
|
RUN yarn install --production --freeze-lockfile
|
||||||
|
|
||||||
|
|
||||||
# Set up health check
|
# Set up health check
|
||||||
|
|
|
@ -9,7 +9,7 @@ readonly defaultImageNameAndTag="aio-builds:latest"
|
||||||
# (Necessary, because only `scripts-js/dist/` is copied to the docker image.)
|
# (Necessary, because only `scripts-js/dist/` is copied to the docker image.)
|
||||||
(
|
(
|
||||||
cd "$SCRIPTS_JS_DIR"
|
cd "$SCRIPTS_JS_DIR"
|
||||||
yarn install
|
yarn install --freeze-lockfile --non-interactive
|
||||||
yarn build
|
yarn build
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -7,6 +7,6 @@ source "`dirname $0`/_env.sh"
|
||||||
# Test `scripts-js/`
|
# Test `scripts-js/`
|
||||||
(
|
(
|
||||||
cd "$SCRIPTS_JS_DIR"
|
cd "$SCRIPTS_JS_DIR"
|
||||||
yarn install
|
yarn install --freeze-lockfile --non-interactive
|
||||||
yarn test
|
yarn test
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue