mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-08-03 15:11:44 +00:00
45 lines
1.1 KiB
YAML
45 lines
1.1 KiB
YAML
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 }}
|