mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-08-02 22:51:45 +00:00
ci: add homelab docker workflow for beta image
This commit is contained in:
parent
059124ca8c
commit
80d59dad93
1 changed files with 45 additions and 0 deletions
45
.github/workflows/homelab-docker-build.yml
vendored
Normal file
45
.github/workflows/homelab-docker-build.yml
vendored
Normal 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 }}
|
||||
Loading…
Add table
Add a link
Reference in a new issue