-
Notifications
You must be signed in to change notification settings - Fork 54
73 lines (59 loc) · 2.05 KB
/
build.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
name: ci
on:
pull_request:
branches: ['main']
push:
branches: ['main']
permissions:
contents: read
jobs:
build:
permissions:
contents: read
name: build
runs-on: ubuntu-latest
steps:
- name: Harden Runner
uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1
with:
egress-policy: audit
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed # v5.1.0
with:
go-version-file: 'go.mod'
check-latest: true
- uses: chainguard-dev/actions/goimports@2cadca168a422313df94f6169691a86498ae51b1 # main
- run: make wolfictl
- run: make test
wolfictl-text:
permissions:
contents: read
name: wolfictl text on wolfi-dev/os
runs-on: ubuntu-latest
steps:
- name: Harden Runner
uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1
with:
egress-policy: audit
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed # v5.1.0
with:
go-version-file: 'go.mod'
check-latest: true
- run: make wolfictl
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
repository: 'wolfi-dev/os'
path: 'wolfi-os'
- name: Test Wolfi OS repo
run: |
./wolfictl text -d wolfi-os \
--type=name \
--pipeline-dir=wolfi-os/pipelines/ \
--keyring-append=https://packages.wolfi.dev/bootstrap/stage3/wolfi-signing.rsa.pub \
--repository-append=https://packages.wolfi.dev/bootstrap/stage3
- name: Test nested repo structure
run: |
./wolfictl text -d testdata/text/ | grep foo-0.0.2-r0
./wolfictl text -d testdata/text/ | grep bar-0.0.1-r0
./wolfictl text -d testdata/text/ | grep root-0.0.1-r0