docker releases

This commit is contained in:
Zoe
2025-09-22 18:49:05 -05:00
parent 0558c719d6
commit 8c18e81358
3 changed files with 108 additions and 27 deletions

39
.github/workflows/docker-publish.yml vendored Normal file
View File

@@ -0,0 +1,39 @@
name: Build and Push Docker Image to GHCR
on:
push:
branches: ["main"]
tags: ["v*.*.*"]
jobs:
build-and-push:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Log in to GHCR
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract Docker metadata
id: meta
uses: docker/metadata-action@v5
with:
images: ghcr.io/${{ github.repository }}
- name: Build and push Docker image
uses: docker/build-push-action@v6
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}