Cache page assets during CI/CD
Some checks failed
Create Docker Image / Test Application (x86_64) (push) Successful in 3m42s
Create Docker Image / Final Docker Image Manifest (push) Has been cancelled
Create Docker Image / Build Docker Image (arm64) (push) Has been cancelled
Create Docker Image / Build Docker Image (x86_64) (push) Has been cancelled
Some checks failed
Create Docker Image / Test Application (x86_64) (push) Successful in 3m42s
Create Docker Image / Final Docker Image Manifest (push) Has been cancelled
Create Docker Image / Build Docker Image (arm64) (push) Has been cancelled
Create Docker Image / Build Docker Image (x86_64) (push) Has been cancelled
This commit is contained in:
parent
73c38a7ee6
commit
ffc18b13fb
@ -55,17 +55,17 @@ jobs:
|
|||||||
- name: Cache page assets
|
- name: Cache page assets
|
||||||
id: cache-page-assets
|
id: cache-page-assets
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
env:
|
# env:
|
||||||
cache-name: page-assets
|
# cache-name: page-assets
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
public/css/app.css
|
public/css/app.css
|
||||||
public/js/app.js
|
public/js/app.js
|
||||||
public/js/vendor.js
|
public/js/vendor.js
|
||||||
key:
|
#key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
|
||||||
${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
|
key: build-pla-page-assets-${{ hashFiles('**/package-lock.json') }}
|
||||||
restore-keys: |
|
#restore-keys: |
|
||||||
${{ runner.os }}-build-${{ env.cache-name }}-
|
# ${{ runner.os }}-build-${{ env.cache-name }}-
|
||||||
|
|
||||||
build:
|
build:
|
||||||
strategy:
|
strategy:
|
||||||
@ -113,25 +113,28 @@ jobs:
|
|||||||
- name: Code Checkout
|
- name: Code Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
# - name: Cache page assets
|
- name: Cache page assets
|
||||||
# id: cache-page-assets
|
id: cache-page-assets
|
||||||
# uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
# env:
|
# env:
|
||||||
# cache-name: page-assets
|
# cache-name: page-assets
|
||||||
# with:
|
with:
|
||||||
# path: |
|
path: |
|
||||||
# public/css/app.css
|
public/css/app.css
|
||||||
# key:
|
public/js/app.js
|
||||||
# ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
|
public/js/vendor.js
|
||||||
# restore-keys: |
|
#key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
|
||||||
# ${{ runner.os }}-build-${{ env.cache-name }}-
|
key: build-pla-page-assets-${{ hashFiles('**/package-lock.json') }}
|
||||||
#
|
#restore-keys: |
|
||||||
# - if: ${{ steps.cache-page-assets.outputs.cache-hit != 'true' }}
|
# ${{ runner.os }}-build-${{ env.cache-name }}-
|
||||||
# name: List the state of page assets
|
|
||||||
# continue-on-error: false
|
- if: ${{ steps.cache-page-assets.outputs.cache-hit != 'true' }}
|
||||||
# run: |
|
name: List the state of page assets
|
||||||
# ls -al public/css/
|
continue-on-error: false
|
||||||
# ls -al public/js/
|
run: |
|
||||||
|
echo CACHE-HIT:${{ steps.cache-page-assets.outputs.cache-hit }}
|
||||||
|
ls -al public/css/
|
||||||
|
ls -al public/js/
|
||||||
|
|
||||||
- name: Record version and Delete Unnecessary files
|
- name: Record version and Delete Unnecessary files
|
||||||
run: |
|
run: |
|
||||||
|
Loading…
Reference in New Issue
Block a user