ci: add homelab docker workflow for beta image

This commit is contained in:
Kevin Gatera 2026-03-03 17:24:08 -05:00
parent 059124ca8c
commit 80d59dad93
No known key found for this signature in database
GPG key ID: F0D9F5932458CFB9

View file

@ -0,0 +1,45 @@
name: Homelab Docker Build
on:
push:
branches:
- homelab
- homelab-postgres
workflow_dispatch:
permissions:
contents: read
packages: write
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Check out
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: Login to GHCR
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push homelab image
uses: docker/build-push-action@v6
with:
context: .
platforms: linux/amd64
push: true
tags: |
ghcr.io/kevingatera/audiobookshelf:${{ github.ref_name }}
ghcr.io/kevingatera/audiobookshelf:${{ github.ref_name }}-${{ github.sha }}
labels: |
org.opencontainers.image.source=https://github.com/kevingatera/audiobookshelf
org.opencontainers.image.revision=${{ github.sha }}