Adds a Dockerfile and Gitea Actions workflow to build/push the CutList.Web image to the registry on push to master, enabling containerized deployment to forge. Also updates CLAUDE.md to reflect the CutList.Mcp project, REST API surface, and CatalogService, and tweaks the cut-length badge styling in the job editor. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
29 lines
946 B
YAML
29 lines
946 B
YAML
name: Build CutList image
|
|
|
|
on:
|
|
push:
|
|
branches: [master]
|
|
paths:
|
|
- "CutList.Web/**"
|
|
- "CutList.Core/**"
|
|
- "CutList.Web/Dockerfile"
|
|
- ".gitea/workflows/build-cutlist.yml"
|
|
workflow_dispatch: {}
|
|
|
|
jobs:
|
|
build-and-push:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Log in to Gitea container registry
|
|
run: echo "${{ secrets.REGISTRY_TOKEN }}" | docker login git.thecozycat.net -u "${{ gitea.actor }}" --password-stdin
|
|
|
|
- name: Build image
|
|
run: docker build -f CutList.Web/Dockerfile -t git.thecozycat.net/${{ gitea.repository_owner }}/cutlist:latest -t git.thecozycat.net/${{ gitea.repository_owner }}/cutlist:${{ gitea.sha }} .
|
|
|
|
- name: Push image
|
|
run: |
|
|
docker push git.thecozycat.net/${{ gitea.repository_owner }}/cutlist:latest
|
|
docker push git.thecozycat.net/${{ gitea.repository_owner }}/cutlist:${{ gitea.sha }}
|