Update homeassistant/home-assistant Docker tag to v2025.2.1 #485
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Push updated Home Assistant image | |
on: | |
workflow_dispatch: | |
push: | |
paths: | |
- 'home_assistant/**' | |
- '.github/workflows/home_assistant_push.yml' | |
branches: | |
- main | |
pull_request: | |
paths: | |
- 'home_assistant/**' | |
- '.github/workflows/home_assistant_push.yml' | |
jobs: | |
push: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v4 | |
- name: Login to GitHub Container Registry | |
uses: docker/login-action@v3 | |
with: | |
registry: ghcr.io | |
username: ${{ github.repository_owner }} | |
password: ${{ secrets.GHCR_REGISTRY_TOKEN }} | |
- name: Build and Push Docker Image | |
uses: docker/build-push-action@v6 | |
with: | |
push: ${{ github.ref == 'refs/heads/main' }} | |
context: ./home_assistant | |
file: ./home_assistant/Dockerfile | |
tags: | | |
ghcr.io/${{ github.repository_owner }}/home_assistant:${{ github.sha }} | |
ghcr.io/${{ github.repository_owner }}/home_assistant:latest |