Cache page assets during CI/CD
Some checks failed
Create Docker Image / Test Application (x86_64) (push) Successful in 37s
Create Docker Image / Build Docker Image (x86_64) (push) Failing after 1m6s
Create Docker Image / Build Docker Image (arm64) (push) Failing after 5m4s
Create Docker Image / Final Docker Image Manifest (push) Has been skipped
Some checks failed
Create Docker Image / Test Application (x86_64) (push) Successful in 37s
Create Docker Image / Build Docker Image (x86_64) (push) Failing after 1m6s
Create Docker Image / Build Docker Image (arm64) (push) Failing after 5m4s
Create Docker Image / Final Docker Image Manifest (push) Has been skipped
This commit is contained in:
parent
be60c6a506
commit
462f4df219
@ -37,6 +37,7 @@ jobs:
|
|||||||
# Build assets
|
# Build assets
|
||||||
npm i
|
npm i
|
||||||
npm run prod
|
npm run prod
|
||||||
|
ls -al public/css/app.css
|
||||||
|
|
||||||
# - name: Run Tests
|
# - name: Run Tests
|
||||||
# run: |
|
# run: |
|
||||||
@ -63,10 +64,7 @@ jobs:
|
|||||||
key:
|
key:
|
||||||
${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
|
${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
|
|
||||||
${{ runner.os }}-build-${{ env.cache-name }}-
|
${{ runner.os }}-build-${{ env.cache-name }}-
|
||||||
${{ runner.os }}-build-
|
|
||||||
${{ runner.os }}-
|
|
||||||
|
|
||||||
build:
|
build:
|
||||||
strategy:
|
strategy:
|
||||||
@ -114,9 +112,22 @@ jobs:
|
|||||||
- name: Code Checkout
|
- name: Code Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Cache page assets
|
||||||
|
id: cache-page-assets
|
||||||
|
uses: actions/cache@v3
|
||||||
|
env:
|
||||||
|
cache-name: page-assets
|
||||||
|
with:
|
||||||
|
path: |
|
||||||
|
public/css/app.css
|
||||||
|
key:
|
||||||
|
${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
|
||||||
|
restore-keys: |
|
||||||
|
${{ runner.os }}-build-${{ env.cache-name }}-
|
||||||
|
|
||||||
- if: ${{ steps.cache-page-assets.outputs.cache-hit != 'true' }}
|
- if: ${{ steps.cache-page-assets.outputs.cache-hit != 'true' }}
|
||||||
name: List the state of node modules
|
name: List the state of page assets
|
||||||
continue-on-error: true
|
continue-on-error: false
|
||||||
run: |
|
run: |
|
||||||
ls -al
|
ls -al
|
||||||
ls -al public/css/
|
ls -al public/css/
|
||||||
|
Loading…
Reference in New Issue
Block a user