Skip to content

Bump olegtarasov/get-tag from 2.1.3 to 2.1.4 (#227) #200

Bump olegtarasov/get-tag from 2.1.3 to 2.1.4 (#227)

Bump olegtarasov/get-tag from 2.1.3 to 2.1.4 (#227) #200

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.4
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.08.2
with:
args: |
--${{ matrix.architecture }} \
--target /data \
--cosign \
--generic $GIT_TAG_NAME