Skip to content

Fix docker publish build: copy Workplace.Contracts into image - #22

Merged
JohanO merged 1 commit into
mainfrom
fix/docker-publish-contracts-project
Sep 7, 2026
Merged

Fix docker publish build: copy Workplace.Contracts into image#22
JohanO merged 1 commit into
mainfrom
fix/docker-publish-contracts-project

Conversation

@JohanO

@JohanO JohanO commented Sep 7, 2026

Copy link
Copy Markdown
Owner

Summary

  • The publish-docker-image workflow has been failing since commit 455b792, which extracted ProviderCalendarEvent/AgendaDateRange into a new Workplace.Contracts project referenced by Workplace.Web.
  • The Dockerfile never copies src/Workplace.Contracts/ into the build context, so dotnet publish fails with CS0246: The type or namespace name 'ProviderCalendarEvent' could not be found.
  • Adds the missing COPY steps for Workplace.Contracts (csproj for restore, then full source), mirroring the existing Workplace.ServiceDefaults pattern.

Fixes #19

Test plan

  • dotnet publish src/Workplace.Web/Workplace.Web.csproj -c Release succeeds locally with Workplace.Contracts building as a dependency
  • CI / publish workflow runs green with the fix

🤖 Generated with Claude Code

Workplace.Web now references the Workplace.Contracts project (added in
455b792), but the Dockerfile never copied it into the build context,
so dotnet publish failed with CS0246 for ProviderCalendarEvent and
friends.

Fixes #19

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@JohanO
JohanO merged commit d7ee163 into main Sep 7, 2026
1 check passed
@JohanO
JohanO deleted the fix/docker-publish-contracts-project branch September 7, 2026 08:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Publish docker image workflow fails

1 participant