Skip to content

Merge pull request #82 from snow-jallen/copilot/snow-jallenauto-play-… #123

Merge pull request #82 from snow-jallen/copilot/snow-jallenauto-play-…

Merge pull request #82 from snow-jallen/copilot/snow-jallenauto-play-… #123

name: Build and Push Docker Images
on:
push:
branches:
- master
workflow_dispatch:
jobs:
build-and-push:
runs-on: ubuntu-24.04-arm
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Log in to GitHub Container Registry
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/${{ github.repository_owner }}/homespeaker
tags: |
type=ref,event=tag
type=raw,value=latest
- name: Build and push ARM64 image
uses: docker/build-push-action@v5
with:
context: .
file: ./HomeSpeaker.Server2/Dockerfile
platforms: linux/arm64
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max