Updating actions file
Some checks failed
Build and Push Docker Image / build-and-push (push) Failing after 21s

This commit is contained in:
PeterChrz 2026-03-31 00:06:02 -04:00
parent 1508aa60c8
commit e68ab740aa
Signed by untrusted user who does not match committer: pch
GPG key ID: 8F0826ECF7302C63
2 changed files with 7 additions and 2 deletions

View file

@ -45,5 +45,7 @@ jobs:
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
secrets: |
composer_auth=${{ secrets.COMPOSER_AUTH }}
cache-from: type=registry,ref=${{ env.IMAGE }}:buildcache
cache-to: type=registry,ref=${{ env.IMAGE }}:buildcache,mode=max

View file

@ -1,3 +1,5 @@
# syntax=docker/dockerfile:1
# Stage 1: Build frontend assets
FROM node:20-alpine AS node-builder
WORKDIR /app
@ -10,8 +12,9 @@ RUN npm run build
FROM composer:2 AS composer-builder
WORKDIR /app
COPY composer.json composer.lock ./
# Install without dev dependencies and without running scripts that need .env
RUN composer install \
# Mount auth.json as a secret so it never gets baked into the image
RUN --mount=type=secret,id=composer_auth,dst=/root/.composer/auth.json \
composer install \
--no-dev \
--no-interaction \
--no-plugins \