forked from wolfi-dev/os
-
Notifications
You must be signed in to change notification settings - Fork 0
/
apk-tools.yaml
87 lines (76 loc) · 2.42 KB
/
apk-tools.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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
package:
name: apk-tools
version: 2.14.4
epoch: 1
description: "apk-tools (Wolfi package manager)"
copyright:
- license: GPL-2.0-only
dependencies:
runtime:
- ca-certificates-bundle
environment:
contents:
packages:
- build-base
- busybox
- ca-certificates-bundle
- lua5.3
- lua5.3-dev
- lua5.3-lzlib
- openssf-compiler-options
- openssl-dev
- scdoc
- zlib-dev
pipeline:
- uses: git-checkout
with:
repository: https://gitlab.alpinelinux.org/alpine/apk-tools.git
tag: v${{package.version}}
expected-commit: de114558a5d8fa15350b1b3d440712fab6bae817
- runs: |
sed -i -e 's:-Werror::' Make.rules
echo "FULL_VERSION=${{package.version}}-r${{package.epoch}}" > config.mk
- runs: |
make LUA="lua5.3" V=1
- runs: |
make LUA="lua5.3" V=1 DESTDIR="${{targets.destdir}}" install
install -d "${{targets.destdir}}"/var/lib/apk
install -d "${{targets.destdir}}"/var/cache/misc
install -d "${{targets.destdir}}"/etc/apk/keys
install -d "${{targets.destdir}}"/etc/apk/protected_paths.d
- uses: strip
subpackages:
- name: "apk-tools-dev"
description: "headers for libapk"
pipeline:
- uses: split/dev
dependencies:
runtime:
- apk-tools
test:
pipeline:
- uses: test/pkgconf
- name: "lua5.3-apk"
description: "Lua module for libapk"
pipeline:
- runs: |
mkdir -p "${{targets.subpkgdir}}"/usr
mv "${{targets.destdir}}"/usr/lib "${{targets.subpkgdir}}"/usr/lib
test:
environment:
contents:
packages:
- wget
pipeline:
- name: Verify apk-tools can work with RSA256 signed repositories
runs: |
wget https://raw.githubusercontent.com/chainguard-dev/apko/71f1961fde53a10c5bd40b80dd4c00a9250dd9f7/pkg/apk/apk/testdata/rsa256-signed/test-rsa256.rsa.pub -O /etc/apk/keys/test-rsa256.rsa.pub
mkdir -p packages/aarch64/
wget https://raw.githubusercontent.com/chainguard-dev/apko/71f1961fde53a10c5bd40b80dd4c00a9250dd9f7/pkg/apk/apk/testdata/rsa256-signed/APKINDEX.tar.gz -O packages/aarch64/APKINDEX.tar.gz
apk --arch aarch64 --repository ./packages/ info --all alpine-baselayout
apk --version
update:
enabled: false
exclude-reason: setting the update to false until the latest apk tools fails for previously built packages
release-monitor:
identifier: 20466