Skip to content

Conversation

@afnanashraf10
Copy link
Contributor

Changes

This PR adds Windows Nano Server container builds to the GitHub Actions workflow and fixes a bug in the Nano Server Dockerfile template.

What's Changed

  1. Added nanoserver builds to workflow: Extended the GitHub Actions workflow to build and publish Nano Server container variants alongside the existing Server Core builds.

  2. Fixed hardcoded dist_commit: Replaced the hardcoded dist_commit value in Dockerfile.nanoserver.tmpl with the template variable {{ .config.dist_commit }}. This ensures the dist_commit stays consistent with other Windows variants and updates automatically when the version changes.

Why

The hardcoded dist_commit was a bug that would cause the Nano Server images to reference an outdated or incorrect commit hash, while other variants would use the correct templated value.

Testing

  • Verified template generates correct dist_commit value
  • Confirmed workflow builds nanoserver images successfully

cc @francislavoie

- Add nanoserver variants to GitHub Actions workflow
- Replace hardcoded dist_commit with template variable in Dockerfile.nanoserver.tmpl
@francislavoie
Copy link
Member

Ah, thanks 👍

We won't update the library file until we're ready - it should reference the commit hash of the last significant change, which has to be a separate commit after that commit, obviously.

@afnanashraf10
Copy link
Contributor Author

Sounds good 👍
I’ll create a separate PR for the bug fix

@afnanashraf10 afnanashraf10 marked this pull request as draft October 24, 2025 06:40
@francislavoie
Copy link
Member

We can still update the workflows tho

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.

2 participants