Updating actions file
Some checks failed
Build and Push Docker Image / build-and-push (push) Failing after 21s
Some checks failed
Build and Push Docker Image / build-and-push (push) Failing after 21s
This commit is contained in:
parent
1508aa60c8
commit
e68ab740aa
2 changed files with 7 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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 \
|
||||
|
|
|
|||
Loading…
Reference in a new issue