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
|
push: true
|
||||||
tags: ${{ steps.meta.outputs.tags }}
|
tags: ${{ steps.meta.outputs.tags }}
|
||||||
labels: ${{ steps.meta.outputs.labels }}
|
labels: ${{ steps.meta.outputs.labels }}
|
||||||
|
secrets: |
|
||||||
|
composer_auth=${{ secrets.COMPOSER_AUTH }}
|
||||||
cache-from: type=registry,ref=${{ env.IMAGE }}:buildcache
|
cache-from: type=registry,ref=${{ env.IMAGE }}:buildcache
|
||||||
cache-to: type=registry,ref=${{ env.IMAGE }}:buildcache,mode=max
|
cache-to: type=registry,ref=${{ env.IMAGE }}:buildcache,mode=max
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,5 @@
|
||||||
|
# syntax=docker/dockerfile:1
|
||||||
|
|
||||||
# Stage 1: Build frontend assets
|
# Stage 1: Build frontend assets
|
||||||
FROM node:20-alpine AS node-builder
|
FROM node:20-alpine AS node-builder
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
@ -10,8 +12,9 @@ RUN npm run build
|
||||||
FROM composer:2 AS composer-builder
|
FROM composer:2 AS composer-builder
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY composer.json composer.lock ./
|
COPY composer.json composer.lock ./
|
||||||
# Install without dev dependencies and without running scripts that need .env
|
# Mount auth.json as a secret so it never gets baked into the image
|
||||||
RUN composer install \
|
RUN --mount=type=secret,id=composer_auth,dst=/root/.composer/auth.json \
|
||||||
|
composer install \
|
||||||
--no-dev \
|
--no-dev \
|
||||||
--no-interaction \
|
--no-interaction \
|
||||||
--no-plugins \
|
--no-plugins \
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue