Set up Siteforge container deployment and registry publishing

This commit is contained in:
Nate Emmert
2026-03-17 15:15:33 -04:00
commit 695f124afe
27 changed files with 6432 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
- [x] Verify that the copilot-instructions.md file in the .github directory is created.
- [x] Clarify Project Requirements.
- [x] Scaffold the Project.
- [x] Customize the Project.
- [x] Install Required Extensions. No extensions were required by project setup info.
- [x] Compile the Project.
- [x] Create and Run Task.
- [x] Launch the Project. User chose not to launch debug mode now.
- [x] Ensure Documentation is Complete.
- Work through each checklist item systematically.
- Keep communication concise and focused.
- Follow development best practices.
+49
View File
@@ -0,0 +1,49 @@
name: Publish Container
on:
push:
branches: ["main"]
tags: ["v*"]
workflow_dispatch:
permissions:
contents: read
packages: write
jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Log in to GHCR
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/siteforge
tags: |
type=raw,value=latest,enable={{is_default_branch}}
type=sha
type=ref,event=tag
- name: Build and push
uses: docker/build-push-action@v6
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}