Skip to content

Make sure builder image is pulled by default (#218) #192

Make sure builder image is pulled by default (#218)

Make sure builder image is pulled by default (#218) #192

Workflow file for this run

name: "Publish"
on:
release:
types: [published]
push:
branches:
- master
env:
GIT_TAG_NAME: dev
jobs:
init:
name: Initialize build
runs-on: ubuntu-latest
outputs:
architectures: ${{ steps.info.outputs.architectures }}
steps:
- name: Checkout the repository
uses: actions/checkout@v4
- name: Get information
id: info
uses: home-assistant/actions/helpers/info@master
publish:
name: Publish builder
needs: init
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
packages: write
strategy:
fail-fast: False
matrix:
architecture: ${{ fromJson(needs.init.outputs.architectures) }}
steps:
- name: Checkout the repository
uses: actions/checkout@v4
- uses: olegtarasov/get-tag@v2.1.3
if: github.event_name == 'release'
name: Set tag envronment variable
- name: Login to GitHub Container Registry
uses: docker/login-action@v3.3.0
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Publish ${{ matrix.architecture }} builder
uses: home-assistant/builder@2024.03.5
with:
args: |
--${{ matrix.architecture }} \
--target /data \
--cosign \
--generic $GIT_TAG_NAME