Skip to content

Add minimal Astro website template with GitHub Actions, dotconfig, and rundbat#1

Merged
ericbusboom merged 2 commits intomasterfrom
copilot/create-basic-astro-template
Apr 8, 2026
Merged

Add minimal Astro website template with GitHub Actions, dotconfig, and rundbat#1
ericbusboom merged 2 commits intomasterfrom
copilot/create-basic-astro-template

Conversation

Copy link
Copy Markdown

Copilot AI commented Apr 8, 2026

Bootstraps an opinionated-but-minimal Astro template for static sites with optional Docker backend support, layered config management, and automated GitHub Pages deployment.

Astro scaffold

  • package.json / astro.config.mjs / tsconfig.json — Astro v6, static output, zero extras by default
  • src/layouts/Layout.astro + src/pages/index.astro — base layout and welcome page

GitHub Actions

  • build.yml — validates build on every push/PR (explicit contents: read permissions)
  • deploy.yml — deploys to GitHub Pages on main via actions/deploy-pages

Configuration (dotconfig)

  • config/{dev,prod}/public.env — per-environment public vars
  • config/local/example/public.env — committed template for personal overrides; actual copies are gitignored
  • config/sops.yaml — SOPS/age encryption rules scaffold

Docker deployment (rundbat)

  • config/rundbat.yaml — app name and container naming rules
  • docker/Dockerfile — multi-stage Node builder → Nginx static server
  • docker/docker-compose.yml — compose file with commented-out DB service for easy opt-in

Setup scripts

  • scripts/setup.sh — install deps, scaffold local config, detect rundbat
  • scripts/dev.sh — load dotconfig then start dev server
  • scripts/docker-run.sh — thin wrapper around docker compose (up|down|build|logs)

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • https://api.github.com/repos/withastro/astro/tarball/examples/minimal
    • Triggering command: /home/REDACTED/work/_temp/ghcca-node/node/bin/node node /home/REDACTED/.npm/_npx/abdb4b598af046c4/node_modules/.bin/create-astro my-astro --template minimal --no-install --no-git (http block)
  • telemetry.astro.build
    • Triggering command: /home/REDACTED/work/_temp/ghcca-node/node/bin/node node /home/REDACTED/work/astro-template/astro-template/node_modules/.bin/astro build (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

We want to create a good template for starting astro website projects. This is meant; this shouldn't have all the bells and whistles. It should have the basics. It should have options for either being completely static or having some backend server, but mostly it'll be static. We want to have it built, maybe published on GitHub with an automatic GitHub action.

It should use https://github.com/ericbusboom/rundbat for managing deployment to Docker, this is mostly going to be for testing, but it may also be used for production if you have a database or any other server backend that will use Docker to deploy it. This will be how we configure the deployment.

Use https://github.com/ericbusboom/dotconfig for managing configuration .

Provide some basic scripts so that after using this as a template, cloning it or forking it, you can very quickly get everything set up and run an example site and see it running.

Copilot AI changed the title [WIP] Add template for starting astro website projects Add minimal Astro website template with GitHub Actions, dotconfig, and rundbat Apr 8, 2026
Copilot AI requested a review from ericbusboom April 8, 2026 18:53
@ericbusboom ericbusboom marked this pull request as ready for review April 8, 2026 19:21
@ericbusboom ericbusboom merged commit c2a73f4 into master Apr 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