Skip to content

build latest

build latest #344

Workflow file for this run

name: 'build latest'
on:
workflow_dispatch:
schedule:
- cron: '0 0 * * *'
jobs:
get_versions:
runs-on: ubuntu-latest
outputs:
base_version: ${{ steps.base_version.outputs.base_version }}
self_version: ${{ steps.self_version.outputs.self_version }}
steps:
- name: base version
id: base_version
run: |
docker pull homeassistant/amd64-addon-silabs-multiprotocol:latest
echo base_version=$(docker inspect homeassistant/amd64-addon-silabs-multiprotocol:latest --format '{{ index .Config.Labels "org.opencontainers.image.version"}}') >> $GITHUB_OUTPUT
- name: show base version
run: |
echo ${{ steps.base_version.outputs.base_version }}
- name: self version
id: self_version
run: |
docker pull b2un0/silabs-multipan-docker:latest
echo self_version=$(docker inspect b2un0/silabs-multipan-docker:latest --format '{{ index .Config.Labels "org.opencontainers.image.version"}}') >> $GITHUB_OUTPUT
- name: show self version
run: |
echo ${{ steps.self_version.outputs.self_version }}
trigger_build:
runs-on: ubuntu-latest
needs: get_versions
permissions: write-all
name: trigger build for ${{ needs.get_versions.outputs.base_version }}
if: needs.get_versions.outputs.base_version != needs.get_versions.outputs.self_version || github.event_name == 'workflow_dispatch'
steps:
- name: Repository Dispatch
uses: peter-evans/repository-dispatch@v2
with:
event-type: build_version
client-payload: '{"base_version": "${{ needs.get_versions.outputs.base_version }}", "is_latest": "yes"}'