-
Notifications
You must be signed in to change notification settings - Fork 2
54 lines (47 loc) · 1.72 KB
/
pr.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
name: Pull Request Check
on:
pull_request:
paths:
- "*.yaml"
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Lint using Wolfictl
uses: wolfi-dev/actions/wolfictl-lint@main
build:
runs-on: ubuntu-latest
container:
image: ghcr.io/wolfi-dev/sdk:latest
options: |
--cap-add NET_ADMIN --cap-add SYS_ADMIN --device /dev/fuse --security-opt seccomp=unconfined --security-opt apparmor:unconfined
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Generate key
run: melange keygen
- name: Look for changed files
id: changes
uses: tj-actions/changed-files@v45
with:
files_yaml: |
melange:
- ./*.yaml
- name: Build all packages
run: |
for file in ${{ steps.changes.outputs.melange_all_changed_files }}; do
if [[ $file == ".yam.yaml" ]]; then
continue
fi
melange build \
--arch x86_64 \
-r https://packages.wolfi.dev/os \
-k https://packages.wolfi.dev/os/wolfi-signing.rsa.pub \
-r https://wolfi.shyim.me \
-k https://wolfi.shyim.me/php-signing.rsa.pub \
--git-repo-url=https://github.com/shyim/wolfi.php \
--git-commit=${{ github.sha }} \
$file
done