-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added ability to set entrypoint/cmd added github actions config
- Loading branch information
Showing
16 changed files
with
241 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: goreleaser | ||
|
||
on: | ||
push: | ||
# run only against tags | ||
tags: | ||
- '*' | ||
|
||
permissions: | ||
contents: write | ||
packages: write | ||
|
||
jobs: | ||
goreleaser: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
- run: git fetch --force --tags | ||
- uses: actions/setup-go@v3 | ||
with: | ||
go-version: '>=1.20.1' | ||
cache: true | ||
- uses: goreleaser/goreleaser-action@v4 | ||
with: | ||
distribution: goreleaser | ||
version: latest | ||
args: release --clean | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
project_name: ayb | ||
builds: | ||
- env: [CGO_ENABLED=0] | ||
goos: | ||
- linux | ||
goarch: | ||
- amd64 | ||
- arm64 | ||
archives: | ||
- format: tar.gz | ||
wrap_in_directory: false | ||
files: | ||
- LICENSE | ||
- README.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -42,7 +42,7 @@ func TestLock_Validate(t *testing.T) { | |
}, | ||
}, | ||
}, | ||
ok: false, | ||
ok: true, | ||
}, | ||
{ | ||
name: "extra file", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,53 +11,20 @@ import ( | |
"os" | ||
) | ||
|
||
var testKeys = map[string][]byte{ | ||
"[email protected]": []byte(` | ||
-----BEGIN PUBLIC KEY----- | ||
MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAyduVzi1mWm+lYo2Tqt/0 | ||
XkCIWrDNP1QBMVPrE0/ZlU2bCGSoo2Z9FHQKz/mTyMRlhNqTfhJ5qU3U9XlyGOPJ | ||
piM+b91g26pnpXJ2Q2kOypSgOMOPA4cQ42PkHBEqhuzssfj9t7x47ppS94bboh46 | ||
xLSDRff/NAbtwTpvhStV3URYkxFG++cKGGa5MPXBrxIp+iZf9GnuxVdST5PGiVGP | ||
ODL/b69sPJQNbJHVquqUTOh5Ry8uuD2WZuXfKf7/C0jC/ie9m2+0CttNu9tMciGM | ||
EyKG1/Xhk5iIWO43m4SrrT2WkFlcZ1z2JSf9Pjm4C2+HovYpihwwdM/OdP8Xmsnr | ||
DzVB4YvQiW+IHBjStHVuyiZWc+JsgEPJzisNY0Wyc/kNyNtqVKpX6dRhMLanLmy+ | ||
f53cCSI05KPQAcGj6tdL+D60uKDkt+FsDa0BTAobZ31OsFVid0vCXtsbplNhW1IF | ||
HwsGXBTVcfXg44RLyL8Lk/2dQxDHNHzAUslJXzPxaHBLmt++2COa2EI1iWlvtznk | ||
Ok9WP8SOAIj+xdqoiHcC4j72BOVVgiITIJNHrbppZCq6qPR+fgXmXa+sDcGh30m6 | ||
9Wpbr28kLMSHiENCWTdsFij+NQTd5S47H7XTROHnalYDuF1RpS+DpQidT5tUimaT | ||
JZDr++FjKrnnijbyNF8b98UCAwEAAQ== | ||
-----END PUBLIC KEY-----`), | ||
"[email protected]": []byte(` | ||
-----BEGIN PUBLIC KEY----- | ||
MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAutQkua2CAig4VFSJ7v54 | ||
ALyu/J1WB3oni7qwCZD3veURw7HxpNAj9hR+S5N/pNeZgubQvJWyaPuQDm7PTs1+ | ||
tFGiYNfAsiibX6Rv0wci3M+z2XEVAeR9Vzg6v4qoofDyoTbovn2LztaNEjTkB+oK | ||
tlvpNhg1zhou0jDVYFniEXvzjckxswHVb8cT0OMTKHALyLPrPOJzVtM9C1ew2Nnc | ||
3848xLiApMu3NBk0JqfcS3Bo5Y2b1FRVBvdt+2gFoKZix1MnZdAEZ8xQzL/a0YS5 | ||
Hd0wj5+EEKHfOd3A75uPa/WQmA+o0cBFfrzm69QDcSJSwGpzWrD1ScH3AK8nWvoj | ||
v7e9gukK/9yl1b4fQQ00vttwJPSgm9EnfPHLAtgXkRloI27H6/PuLoNvSAMQwuCD | ||
hQRlyGLPBETKkHeodfLoULjhDi1K2gKJTMhtbnUcAA7nEphkMhPWkBpgFdrH+5z4 | ||
Lxy+3ek0cqcI7K68EtrffU8jtUj9LFTUC8dERaIBs7NgQ/LfDbDfGh9g6qVj1hZl | ||
k9aaIPTm/xsi8v3u+0qaq7KzIBc9s59JOoA8TlpOaYdVgSQhHHLBaahOuAigH+VI | ||
isbC9vmqsThF2QdDtQt37keuqoda2E6sL7PUvIyVXDRfwX7uMDjlzTxHTymvq2Ck | ||
htBqojBnThmjJQFgZXocHG8CAwEAAQ== | ||
-----END PUBLIC KEY-----`), | ||
} | ||
|
||
type PackageKeeper struct { | ||
indices []apk.NamedIndex | ||
} | ||
|
||
func NewPackageKeeper(ctx context.Context, repositories []string) (*PackageKeeper, error) { | ||
log := logr.FromContextOrDiscard(ctx) | ||
indices, err := apk.GetRepositoryIndexes(ctx, repositories, testKeys, "x86_64", apk.WithIgnoreSignatures(false)) | ||
indices, err := apk.GetRepositoryIndexes(ctx, repositories, map[string][]byte{}, "x86_64", apk.WithIgnoreSignatures(true)) | ||
if err != nil { | ||
return nil, err | ||
} | ||
|
||
log.Info("loaded indices", "count", len(indices)) | ||
log.V(2).Info("loaded indices", "count", len(indices)) | ||
for _, i := range indices { | ||
log.Info("added index", "count", i.Count(), "name", i.Name(), "source", i.Source()) | ||
log.V(1).Info("added index", "count", i.Count(), "name", i.Name(), "source", i.Source()) | ||
} | ||
|
||
return &PackageKeeper{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
{ | ||
"name": "apko-eg-nginx", | ||
"lockfileVersion": 1, | ||
"packages": { | ||
"apk-tools": { | ||
"type": "Alpine", | ||
"version": "2.14.0-r0", | ||
"resolved": "https://packages.wolfi.dev/os/x86_64/apk-tools-2.14.0-r0.apk", | ||
"integrity": "Q15lEO4JohyDLUB0MMSqVgQor2Ug8=" | ||
}, | ||
"busybox": { | ||
"type": "Alpine", | ||
"version": "1.36.1-r2", | ||
"resolved": "https://packages.wolfi.dev/os/x86_64/busybox-1.36.1-r2.apk", | ||
"integrity": "Q1d2kYe9D3/7EJ+b9C6YkKqlSsU/M=" | ||
}, | ||
"ca-certificates-bundle": { | ||
"type": "Alpine", | ||
"version": "20230506-r0", | ||
"resolved": "https://packages.wolfi.dev/os/x86_64/ca-certificates-bundle-20230506-r0.apk", | ||
"integrity": "Q1/YGo3iUSdyF2/rk3tKR6MhtUEzg=" | ||
}, | ||
"glibc": { | ||
"type": "Alpine", | ||
"version": "2.38-r2", | ||
"resolved": "https://packages.wolfi.dev/os/x86_64/glibc-2.38-r2.apk", | ||
"integrity": "Q1k9e5NAH0GBM6W9/GARLSIDa3HV4=" | ||
}, | ||
"glibc-locale-posix": { | ||
"type": "Alpine", | ||
"version": "2.38-r2", | ||
"resolved": "https://packages.wolfi.dev/os/x86_64/glibc-locale-posix-2.38-r2.apk", | ||
"integrity": "Q1GyMxw4Su1WqAaaHhO6I7/sxSMAA=" | ||
}, | ||
"ld-linux": { | ||
"type": "Alpine", | ||
"version": "2.38-r2", | ||
"resolved": "https://packages.wolfi.dev/os/x86_64/ld-linux-2.38-r2.apk", | ||
"integrity": "Q14GpGTlRyZY+iYYxqnOvshsrGf8Q=" | ||
}, | ||
"libcrypt1": { | ||
"type": "Alpine", | ||
"version": "2.38-r2", | ||
"resolved": "https://packages.wolfi.dev/os/x86_64/libcrypt1-2.38-r2.apk", | ||
"integrity": "Q1lGWn9fktWmEmNdyqaXC0B1j7NIc=" | ||
}, | ||
"libcrypto3": { | ||
"type": "Alpine", | ||
"version": "3.1.3-r0", | ||
"resolved": "https://packages.wolfi.dev/os/x86_64/libcrypto3-3.1.3-r0.apk", | ||
"integrity": "Q16MModYE7dAtOLG3kDnIa/Jxbn7o=" | ||
}, | ||
"libssl3": { | ||
"type": "Alpine", | ||
"version": "3.1.3-r0", | ||
"resolved": "https://packages.wolfi.dev/os/x86_64/libssl3-3.1.3-r0.apk", | ||
"integrity": "Q1Iy4/pjMZ4WLOJ4BLVG3Pa3SJxY8=" | ||
}, | ||
"openssl-config": { | ||
"type": "Alpine", | ||
"version": "3.1.3-r0", | ||
"resolved": "https://packages.wolfi.dev/os/x86_64/openssl-config-3.1.3-r0.apk", | ||
"integrity": "Q1Hf1wTsCSVZNpng1bU87e+L17oXg=" | ||
}, | ||
"wolfi-base": { | ||
"type": "Alpine", | ||
"version": "1-r3", | ||
"resolved": "https://packages.wolfi.dev/os/x86_64/wolfi-base-1-r3.apk", | ||
"integrity": "Q1LrzTxq5MubwvQY3xCuDnXVIGJek=" | ||
}, | ||
"wolfi-baselayout": { | ||
"type": "Alpine", | ||
"version": "20230201-r6", | ||
"resolved": "https://packages.wolfi.dev/os/x86_64/wolfi-baselayout-20230201-r6.apk", | ||
"integrity": "Q17VhAhkjHFu8hi9j6VPHxlOX95sc=" | ||
}, | ||
"wolfi-keys": { | ||
"type": "Alpine", | ||
"version": "1-r5", | ||
"resolved": "https://packages.wolfi.dev/os/x86_64/wolfi-keys-1-r5.apk", | ||
"integrity": "Q10fpy9hX9x84izBkTlUFtNXLEeqk=" | ||
}, | ||
"zlib": { | ||
"type": "Alpine", | ||
"version": "1.3-r0", | ||
"resolved": "https://packages.wolfi.dev/os/x86_64/zlib-1.3-r0.apk", | ||
"integrity": "Q12c/3NY/o7FDtGM4k93d8nDACYWk=" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
apiVersion: ayb.dcas.dev/v1 | ||
kind: Build | ||
metadata: | ||
name: apko-eg-nginx | ||
spec: | ||
from: scratch | ||
repositories: | ||
alpine: | ||
- url: https://packages.wolfi.dev/os | ||
packages: | ||
- type: Alpine | ||
names: | ||
- wolfi-base |
Oops, something went wrong.