Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Jan 8, 2026

Plan for Docker SSH Server + GitHub Actions CI

  • Create Dockerfile to set up SSH server
    • Base image with SSH server support (Ubuntu 22.04)
    • Create user plfanzen with password plfanzy
    • Configure SSH server to accept password authentication
    • Expose SSH port (22)
  • Create GitHub Actions workflow
    • Build Docker image
    • Push image to GitHub Container Registry (ghcr.io)
    • Test SSH connectivity with retry mechanism
    • Add explicit permissions for security
    • Fix step ordering for sshpass installation
  • Update README with usage instructions and security note
    • Add instructions for using pre-built images from ghcr.io
    • Document available image tags
  • Test the implementation locally
  • Address code review feedback
    • Remove duplicate PasswordAuthentication configuration
    • Improve CI with retry mechanism for SSH readiness
    • Add security note about hardcoded password
  • Run security checks - All passed ✓
  • Add GHCR push functionality
Original prompt

Build a simple Docker container + GitHub actions CI. The Docker container should simply spawn an SSH server with username plfanzen and password plfanzy.


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI changed the title [WIP] Build simple Docker container with SSH server Add Docker SSH server with GitHub Actions CI Jan 8, 2026
Copilot AI requested a review from AaronDewes January 8, 2026 18:22
@AaronDewes
Copy link
Member

@copilot Make GitHub actions build & push the image to ghcr.io

Copy link
Contributor Author

Copilot AI commented Jan 8, 2026

@copilot Make GitHub actions build & push the image to ghcr.io

Done! The workflow now builds and pushes the Docker image to ghcr.io with the following features:

  • Automatic push to GitHub Container Registry
  • Multiple tags: latest, branch-specific, and commit-specific builds
  • Updated README with instructions for using pre-built images

Commits: 4a2b795 (add GHCR push) and 1fc0fe5 (fix step order)

@AaronDewes AaronDewes marked this pull request as ready for review January 8, 2026 19:19
@AaronDewes AaronDewes merged commit b5a54c0 into main Jan 8, 2026
1 check failed
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