Cache page assets during CI/CD
All checks were successful
Create Docker Image / Test Application (x86_64) (push) Successful in 4m30s
Create Docker Image / Build Docker Image (x86_64) (push) Successful in 1m59s
Create Docker Image / Build Docker Image (arm64) (push) Successful in 3m14s
Create Docker Image / Final Docker Image Manifest (push) Successful in 10s
All checks were successful
Create Docker Image / Test Application (x86_64) (push) Successful in 4m30s
Create Docker Image / Build Docker Image (x86_64) (push) Successful in 1m59s
Create Docker Image / Build Docker Image (arm64) (push) Successful in 3m14s
Create Docker Image / Final Docker Image Manifest (push) Successful in 10s
This commit is contained in:
parent
912a69dedd
commit
73c38a7ee6
@ -60,6 +60,8 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
public/css/app.css
|
public/css/app.css
|
||||||
|
public/js/app.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') }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
@ -111,30 +113,32 @@ 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:
|
# 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 }}-
|
# ${{ 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 page assets
|
# name: List the state of page assets
|
||||||
continue-on-error: false
|
# continue-on-error: false
|
||||||
run: |
|
# run: |
|
||||||
ls -al
|
# ls -al public/css/
|
||||||
ls -al public/css/
|
# ls -al public/js/
|
||||||
|
|
||||||
- name: Record version and Delete Unnecessary files
|
- name: Record version and Delete Unnecessary files
|
||||||
run: |
|
run: |
|
||||||
echo ${GITHUB_SHA::8} > VERSION
|
echo ${GITHUB_SHA::8} > VERSION
|
||||||
rm -rf .git* tests/ storage/app/test/
|
rm -rf .git* tests/ storage/app/test/
|
||||||
|
ls -al public/css/
|
||||||
|
ls -al public/js/
|
||||||
|
|
||||||
- name: Build and Push Docker Image
|
- name: Build and Push Docker Image
|
||||||
uses: docker/build-push-action@v5
|
uses: docker/build-push-action@v5
|
||||||
|
Loading…
Reference in New Issue
Block a user