From 1fbff9766026c1bbdf5f52886298fe0907fb98a0 Mon Sep 17 00:00:00 2001 From: nick-delirium Date: Fri, 19 Jan 2024 14:40:36 +0100 Subject: [PATCH] fix(ui): debug icon build --- .github/workflows/frontend.yaml | 2 +- frontend/scripts/icons.js | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/frontend.yaml b/.github/workflows/frontend.yaml index db90235ee..10bdcdcc7 100644 --- a/.github/workflows/frontend.yaml +++ b/.github/workflows/frontend.yaml @@ -47,7 +47,7 @@ jobs: set -x cd frontend mv .env.sample .env - docker run --rm -v /etc/passwd:/etc/passwd -u `id -u`:`id -g` -v $(pwd):/home/${USER} -w /home/${USER} --name node_build node:14-stretch-slim /bin/bash -c "yarn && yarn build" + docker run --rm -v /etc/passwd:/etc/passwd -u `id -u`:`id -g` -v $(pwd):/home/${USER} -w /home/${USER} --name node_build node:16-stretch-slim /bin/bash -c "yarn && yarn build" # https://github.com/docker/cli/issues/1134#issuecomment-613516912 DOCKER_BUILDKIT=1 docker build --target=cicd -t $DOCKER_REPO/frontend:${IMAGE_TAG} . docker tag $DOCKER_REPO/frontend:${IMAGE_TAG} $DOCKER_REPO/frontend:${IMAGE_TAG}-ee diff --git a/frontend/scripts/icons.js b/frontend/scripts/icons.js index c41a74b3d..0a91e9eaa 100644 --- a/frontend/scripts/icons.js +++ b/frontend/scripts/icons.js @@ -51,6 +51,8 @@ const plugins = (removeFill = true) => { const iconPaths = []; const dirs = getDirectories(ICONS_DIRNAME); +console.log(ICONS_DIRNAME, UI_DIRNAME, icons, dirs) + fs.mkdirSync(`${UI_DIRNAME}/Icons`, { recursive: true }); dirs.forEach((dir) => { fs.mkdirSync(`${UI_DIRNAME}/Icons/${dir.replaceAll('-', '_')}`, { recursive: true });