{"id":15770459,"url":"https://github.com/c-ehrlich/next-docker-github-actions","last_synced_at":"2025-10-09T16:10:11.302Z","repository":{"id":134326900,"uuid":"496211668","full_name":"c-ehrlich/next-docker-github-actions","owner":"c-ehrlich","description":"Testing automated deployment of a Next.js app to a VPS using Docker and GitHub Actions","archived":false,"fork":false,"pushed_at":"2023-03-30T18:52:28.000Z","size":65,"stargazers_count":4,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-21T12:24:47.478Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"CSS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/c-ehrlich.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-05-25T11:59:38.000Z","updated_at":"2024-07-26T02:48:14.000Z","dependencies_parsed_at":null,"dependency_job_id":"2baced16-2a47-4eab-8530-8633bad96c2a","html_url":"https://github.com/c-ehrlich/next-docker-github-actions","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/c-ehrlich/next-docker-github-actions","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/c-ehrlich%2Fnext-docker-github-actions","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/c-ehrlich%2Fnext-docker-github-actions/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/c-ehrlich%2Fnext-docker-github-actions/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/c-ehrlich%2Fnext-docker-github-actions/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/c-ehrlich","download_url":"https://codeload.github.com/c-ehrlich/next-docker-github-actions/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/c-ehrlich%2Fnext-docker-github-actions/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279001763,"owners_count":26083171,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-09T02:00:07.460Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-04T14:41:46.218Z","updated_at":"2025-10-09T16:10:11.250Z","avatar_url":"https://github.com/c-ehrlich.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Next-Docker-Github-Actions\n\n![Deployment Screenshot](https://user-images.githubusercontent.com/8353666/170532989-2134cc87-61ee-4d5f-b35b-be082c8d97f9.png)\n(note: this is no longer live because it's the only thing I was using that VPS for)\n\n## What is this?\nThis is a sample repo for desting continuous deployment of a Next.js app to a VPS (Hetzner in this case, but could be any) using GitHub Actions\n\nIt exists for two reasons:\n1. Figuring out how this works\n2. As a reference for me to work from in the future\n\n## What did I learn from this?\n- How to create a Dockerfile\n  - Separate builder and runner\n  - Use environment variables\n- How to create GitHub Actions\n  - Publish an image to the Github Packages Registry, and use that image in a separate step\n  - SSH into a server, upload and run the image\n- Linux Server Admin\n  - Learned more about SSH keys\n  - I am using a Ubuntu VM on a VPS from Hetzner - this is 1/4 the price of Vercel's cheapest plan!\n\n## What's next\n- Registering a domain for a project (I already have a domain for my Portfolio, but I registered it through Vercel where the portfolio is hosted, so there was no manual configuration necessary)\n- Using NGINX to create a reverse proxy\n- Using the things I learned here to deploy a real project (such as my Survey App 'Anket')\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fc-ehrlich%2Fnext-docker-github-actions","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fc-ehrlich%2Fnext-docker-github-actions","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fc-ehrlich%2Fnext-docker-github-actions/lists"}