From e13a008860d0bafdc121287600cb704c2d49d5a4 Mon Sep 17 00:00:00 2001 From: Julia McGhee Date: Fri, 20 Mar 2026 19:46:34 +0000 Subject: [PATCH] Copy root pnpm-lock.yaml into app context for Docker builds Each app's Dockerfile expects a lockfile but docker build context is scoped to the app directory. Copy it in before build, remove after. --- .github/workflows/deploy-production.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy-production.yaml b/.github/workflows/deploy-production.yaml index da867ec..959a7ce 100644 --- a/.github/workflows/deploy-production.yaml +++ b/.github/workflows/deploy-production.yaml @@ -36,10 +36,12 @@ jobs: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin IFS=',' read -ra APPS <<< "${{ steps.changes.outputs.apps }}" for app in "${APPS[@]}"; do + cp pnpm-lock.yaml apps/${app}/pnpm-lock.yaml docker build \ -t ghcr.io/${{ github.repository_owner }}/homelab-${app}:${{ github.sha }} \ -t ghcr.io/${{ github.repository_owner }}/homelab-${app}:latest \ apps/${app} + rm apps/${app}/pnpm-lock.yaml docker push ghcr.io/${{ github.repository_owner }}/homelab-${app}:${{ github.sha }} docker push ghcr.io/${{ github.repository_owner }}/homelab-${app}:latest done