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:
|
||||
path: |
|
||||
public/css/app.css
|
||||
public/js/app.js
|
||||
public/js/vendor.js
|
||||
key:
|
||||
${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
|
||||
restore-keys: |
|
||||
@ -111,30 +113,32 @@ jobs:
|
||||
- name: Code Checkout
|
||||
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' }}
|
||||
name: List the state of page assets
|
||||
continue-on-error: false
|
||||
run: |
|
||||
ls -al
|
||||
ls -al public/css/
|
||||
# - 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' }}
|
||||
# name: List the state of page assets
|
||||
# continue-on-error: false
|
||||
# run: |
|
||||
# ls -al public/css/
|
||||
# ls -al public/js/
|
||||
|
||||
- name: Record version and Delete Unnecessary files
|
||||
run: |
|
||||
echo ${GITHUB_SHA::8} > VERSION
|
||||
rm -rf .git* tests/ storage/app/test/
|
||||
ls -al public/css/
|
||||
ls -al public/js/
|
||||
|
||||
- name: Build and Push Docker Image
|
||||
uses: docker/build-push-action@v5
|
||||
|
Loading…
Reference in New Issue
Block a user