Update build action with composer and npm installs
Some checks failed
tests / ci (push) Has been cancelled
linter / quality (push) Has been cancelled

This commit is contained in:
Javier Feliz 2025-07-16 19:44:26 -04:00
parent 63de1cc642
commit d3e6999a6c
2 changed files with 20 additions and 6 deletions

View File

@ -12,6 +12,25 @@ jobs:
- name: Checkout code
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
uses: docker/setup-buildx-action@v3

View File

@ -1,9 +1,4 @@
FROM gitgud.foo/thegrind/laravel-base:latest
# Get the app in there
WORKDIR /app
COPY . .
# Install deps and built front end assets
RUN composer install --no-interaction --prefer-dist --optimize-autoloader
RUN npm install && npm run build
COPY . /app