Cache page assets during CI/CD
All checks were successful
Create Docker Image / Test Application (x86_64) (push) Successful in 44s
Create Docker Image / Build Docker Image (arm64) (push) Successful in 3m23s
Create Docker Image / Build Docker Image (x86_64) (push) Successful in 4m24s
Create Docker Image / Final Docker Image Manifest (push) Successful in 11s

This commit is contained in:
Deon George 2025-01-04 18:04:38 +11:00
parent ffc18b13fb
commit da2f93c15b

View File

@ -64,8 +64,8 @@ jobs:
public/js/vendor.js public/js/vendor.js
#key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} #key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
key: build-pla-page-assets-${{ hashFiles('**/package-lock.json') }} key: build-pla-page-assets-${{ hashFiles('**/package-lock.json') }}
#restore-keys: | restore-keys: |
# ${{ runner.os }}-build-${{ env.cache-name }}- build-pla-page-assets-
build: build:
strategy: strategy:
@ -125,8 +125,8 @@ jobs:
public/js/vendor.js public/js/vendor.js
#key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} #key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
key: build-pla-page-assets-${{ hashFiles('**/package-lock.json') }} key: build-pla-page-assets-${{ hashFiles('**/package-lock.json') }}
#restore-keys: | restore-keys: |
# ${{ runner.os }}-build-${{ env.cache-name }}- build-pla-page-assets-
- if: ${{ steps.cache-page-assets.outputs.cache-hit != 'true' }} - if: ${{ steps.cache-page-assets.outputs.cache-hit != 'true' }}
name: List the state of page assets name: List the state of page assets