Files
nmemmertandClaude Sonnet 4.6 93b9cdf00b Initial commit: Firewood Stack calculator with CI/CD
Static web app (nginx) with cord calculation, wood species/seasoning
adjustments, season planning, and month-by-month coverage timeline.
GitHub Actions workflow builds and pushes container to ghcr.io on push to main.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-08-17 12:06:07 -04:00

44 lines
1.0 KiB
YAML

name: Build & Push Container
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Log in to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract metadata
id: meta
uses: docker/metadata-action@v5
with:
images: ghcr.io/nmemmert/firewood
tags: |
type=ref,event=branch
type=sha,prefix=sha-
type=raw,value=latest,enable=${{ github.ref == 'refs/heads/main' }}
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}