From ce4be5d21717b588ae2c4e319853886842ad28fc Mon Sep 17 00:00:00 2001 From: FireMasterK <20838718+FireMasterK@users.noreply.github.com> Date: Tue, 28 Dec 2021 18:56:28 +0000 Subject: [PATCH] Fix docker and ci for Vite. --- .github/workflows/build.yml | 4 ++-- Dockerfile | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5ed2a109..d39576d9 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -15,9 +15,9 @@ jobs: - name: Setup Node.js uses: actions/setup-node@v2.5.1 with: - cache: 'yarn' + cache: "yarn" - run: yarn install --prefer-offline - - run: yarn build && sed -i 's/fonts.gstatic.com/fonts.kavin.rocks/g' dist/css/*.css + - run: yarn build && sed -i 's/fonts.gstatic.com/fonts.kavin.rocks/g' dist/assets/*.css - uses: aquiladev/ipfs-action@v0.1.6 id: ipfs-add with: diff --git a/Dockerfile b/Dockerfile index 8150f771..b7889ded 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,7 +8,7 @@ RUN yarn install --prefer-offline COPY . . -RUN yarn build && sed -i 's/fonts.gstatic.com/fonts.kavin.rocks/g' dist/css/*.css +RUN yarn build && sed -i 's/fonts.gstatic.com/fonts.kavin.rocks/g' dist/assets/*.css FROM nginx:alpine