File tree Expand file tree Collapse file tree 1 file changed +41
-0
lines changed
Expand file tree Collapse file tree 1 file changed +41
-0
lines changed Original file line number Diff line number Diff line change 2929 with :
3030 filters : |
3131 ${{ join(fromJSON(steps.set-folders.outputs.filters), '\n') }}
32+
33+ build :
34+ if : ${{ needs.check-addon-changes.outputs.changedAddons != '[]' }}
35+ needs : check-addon-changes
36+ runs-on : ubuntu-latest
37+ environment : CR_PAT
38+ name : Build ${{ matrix.addon }} add-on
39+ strategy :
40+ matrix :
41+ addon : ${{ fromJSON(needs.check-addon-changes.outputs.changedAddons) }}
42+
43+ steps :
44+ - name : Check out repository
45+ uses : actions/checkout@v3
46+
47+ - name : Get information
48+ id : info
49+ uses : home-assistant/actions/helpers/info@master
50+ with :
51+ path : " ./${{ matrix.addon }}"
52+
53+ - name : Login to GitHub Container Registry
54+ if : env.BUILD_ARGS != '--test'
55+ 56+ with :
57+ registry : ghcr.io
58+ username : ${{ github.repository_owner }}
59+ password : ${{ secrets.GITHUB_TOKEN }}
60+
61+ - name : Build ${{ matrix.addon }} add-on
62+ uses : home-assistant/builder@master
63+ # env:
64+ # CAS_API_KEY: ${{ secrets.CAS_API_KEY }}
65+ with :
66+ args : |
67+ ${{ env.BUILD_ARGS }} \
68+ --${{ join(steps.info.outputs.architectures, ' --') }} \
69+ --target /data/${{ matrix.addon }} \
70+ --image "${{ steps.check.outputs.image }}" \
71+ --docker-hub "ghcr.io/${{ github.repository_owner }}" \
72+ --addon
You can’t perform that action at this time.
0 commit comments