This repository has been archived by the owner on Nov 7, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 17
55 lines (51 loc) · 1.67 KB
/
pull-request.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
---
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 }}
version: pr-${{ github.event.number }}
steps:
- name: ⤵️ Checkout
uses: actions/checkout@v4
- name: ℹ️ Gather Information
id: information
uses: frenck/[email protected]
lint:
name: ✏️ Lint
needs: [ information ]
uses: ./.github/workflows/wf-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/wf-docker-build.yaml
strategy:
matrix:
architecture: ${{ fromJson(needs.information.outputs.architectures) }}
with:
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 }}