Fix i386 builds reporting x86_64 in the build process (#189) #163
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: "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/[email protected] | |
if: github.event_name == 'release' | |
name: Set tag envronment variable | |
- name: Login to GitHub Container Registry | |
uses: docker/[email protected] | |
with: | |
registry: ghcr.io | |
username: ${{ github.repository_owner }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Publish ${{ matrix.architecture }} builder | |
uses: ./ | |
with: | |
args: | | |
--${{ matrix.architecture }} \ | |
--target /data \ | |
--cosign \ | |
--generic $GIT_TAG_NAME |