Update build action with composer and npm installs
This commit is contained in:
parent
63de1cc642
commit
d3e6999a6c
19
.github/workflows/build.yml
vendored
19
.github/workflows/build.yml
vendored
@ -12,6 +12,25 @@ jobs:
|
|||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Set up Node
|
||||||
|
uses: actions/setup-node@v4
|
||||||
|
with:
|
||||||
|
node-version: '24'
|
||||||
|
|
||||||
|
- name: Set up PHP with Composer
|
||||||
|
uses: shivammathur/setup-php@v2
|
||||||
|
with:
|
||||||
|
php-version: '8.4'
|
||||||
|
tools: composer
|
||||||
|
|
||||||
|
- name: Install PHP dependencies
|
||||||
|
run: composer install --no-interaction --prefer-dist --optimize-autoloader
|
||||||
|
|
||||||
|
- name: Install JS dependencies and build assets
|
||||||
|
run: |
|
||||||
|
npm ci
|
||||||
|
npm run build
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v3
|
uses: docker/setup-buildx-action@v3
|
||||||
|
|
||||||
|
@ -1,9 +1,4 @@
|
|||||||
FROM gitgud.foo/thegrind/laravel-base:latest
|
FROM gitgud.foo/thegrind/laravel-base:latest
|
||||||
|
|
||||||
# Get the app in there
|
# Get the app in there
|
||||||
WORKDIR /app
|
COPY . /app
|
||||||
COPY . .
|
|
||||||
|
|
||||||
# Install deps and built front end assets
|
|
||||||
RUN composer install --no-interaction --prefer-dist --optimize-autoloader
|
|
||||||
RUN npm install && npm run build
|
|
Loading…
x
Reference in New Issue
Block a user