Skip to content
This repository has been archived by the owner on Nov 7, 2024. It is now read-only.

chore(deps): update docker/build-push-action action to v6.2.0 #105

chore(deps): update docker/build-push-action action to v6.2.0

chore(deps): update docker/build-push-action action to v6.2.0 #105

Workflow file for this run

---
name: Pull Request Build
# yamllint disable-line rule:truthy
on:
pull_request:
types:
- opened
- reopened
- synchronize
jobs:
information:
name: ℹ️ Addon Information
runs-on: ubuntu-latest
outputs:
name: ${{ steps.information.outputs.name }}
description: ${{ steps.information.outputs.description }}
target: ${{ steps.information.outputs.target }}
build: ${{ steps.information.outputs.build }}
architectures: ${{ steps.information.outputs.architectures }}
dist-tag: ${{ steps.versions.outputs.dist-tag }}
version: pr-${{ steps.versions.outputs.version }}-${{github.run_number}}
matterbridge-home-assistant-version: ${{ steps.versions.outputs.version }}
steps:
- name: ⤵️ Checkout
uses: actions/checkout@v4
- name: ℹ️ Gather Information
id: information
uses: frenck/action-addon-information@v1.4.2
- name: ℹ️ Detect Versions
id: versions
run: |
DIST_TAG=latest
VERSION=$(npm view matterbridge-home-assistant@$DIST_TAG version)
echo "dist-tag=${DIST_TAG}" >> "$GITHUB_OUTPUT"
echo "version=${VERSION}" >> "$GITHUB_OUTPUT"
lint:
name: ✏️ Lint
needs: [ information ]
uses: ./.github/workflows/workflow__lint.yaml
permissions:
pull-requests: read
contents: read
with:
addon-path: "${{ needs.information.outputs.target }}"
yamllint-config: ".yamllint.yaml"
build:
name: 🚀 Build
needs: [ information, lint ]
uses: ./.github/workflows/workflow__docker-build.yaml
strategy:
matrix:
architecture: ${{ fromJson(needs.information.outputs.architectures) }}
with:
docker-push: false
addon-architecture: ${{ matrix.architecture }}
addon-path: ${{ needs.information.outputs.target }}
addon-version: ${{ needs.information.outputs.version }}
addon-name: ${{ needs.information.outputs.name }}
addon-description: ${{ needs.information.outputs.description }}
docker-tags: |
ghcr.io/${{ github.repository }}/${{ matrix.architecture }}:${{ needs.information.outputs.version }}
matterbridge-home-assistant-version: ${{ needs.information-outputs.matterbridge-home-assistant-version }}