diff --git a/.gitea/workflows/release-image-gitea.yml b/.gitea/workflows/release-image-gitea.yml index d83b7cf..6646fd5 100644 --- a/.gitea/workflows/release-image-gitea.yml +++ b/.gitea/workflows/release-image-gitea.yml @@ -26,7 +26,18 @@ jobs: cache: pnpm - name: Install Dependencies - run: pnpm install + run: pnpm install --frozen-lockfile + + - name: Cache Astro Build Cache + uses: actions/cache@v4 + with: + path: | + node_modules/.cache + .astro/cache + key: ${{ runner.os }}-astro-cache-${{ hashFiles('**/pnpm-lock.yaml') }}-${{ github.sha }} + restore-keys: | + ${{ runner.os }}-astro-cache-${{ hashFiles('**/pnpm-lock.yaml') }}- + ${{ runner.os }}-astro-cache- - name: Lint Code run: pnpm lint @@ -113,6 +124,8 @@ jobs: COMMIT_SHA=${{ steps.version.outputs.commit }} IS_RELEASE=${{ steps.version.outputs.is_release }} file: ./Dockerfile + cache-from: type=gha + cache-to: type=gha,mode=max - name: ntfy Success uses: niniyas/ntfy-action@master diff --git a/.gitea/workflows/release-image-harbor.yml b/.gitea/workflows/release-image-harbor.yml index 8936480..81861d3 100644 --- a/.gitea/workflows/release-image-harbor.yml +++ b/.gitea/workflows/release-image-harbor.yml @@ -26,7 +26,18 @@ jobs: cache: pnpm - name: Install Dependencies - run: pnpm install + run: pnpm install --frozen-lockfile + + - name: Cache Astro Build Cache + uses: actions/cache@v4 + with: + path: | + node_modules/.cache + .astro/cache + key: ${{ runner.os }}-astro-cache-${{ hashFiles('**/pnpm-lock.yaml') }}-${{ github.sha }} + restore-keys: | + ${{ runner.os }}-astro-cache-${{ hashFiles('**/pnpm-lock.yaml') }}- + ${{ runner.os }}-astro-cache- - name: Lint Code run: pnpm lint @@ -113,6 +124,8 @@ jobs: COMMIT_SHA=${{ steps.version.outputs.commit }} IS_RELEASE=${{ steps.version.outputs.is_release }} file: ./Dockerfile + cache-from: type=gha + cache-to: type=gha,mode=max - name: ntfy Success uses: niniyas/ntfy-action@master diff --git a/.gitea/workflows/test-build.yaml b/.gitea/workflows/test-build.yaml index ae9d79f..7e6e1d9 100644 --- a/.gitea/workflows/test-build.yaml +++ b/.gitea/workflows/test-build.yaml @@ -28,7 +28,18 @@ jobs: cache: pnpm - name: Install Dependencies - run: pnpm install + run: pnpm install --frozen-lockfile + + - name: Cache Astro Build Cache + uses: actions/cache@v4 + with: + path: | + node_modules/.cache + .astro/cache + key: ${{ runner.os }}-astro-cache-${{ hashFiles('**/pnpm-lock.yaml') }}-${{ github.sha }} + restore-keys: | + ${{ runner.os }}-astro-cache-${{ hashFiles('**/pnpm-lock.yaml') }}- + ${{ runner.os }}-astro-cache- - name: Lint Code run: pnpm lint