Add artifactapi_remote_github_alpine resource #17
Reference in New Issue
Block a user
Delete Branch "benvin/apk-github"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Why
Artifactapi can expose a GitHub repo's release assets as a native package repository without precaching. RPM (
github_rpm) and Debian (github_deb) analogs already exist; this adds the Alpine/apk analog so Alpine hosts canapk addpackages published only as GitHub release.apkassets. Stacks on the apk-local work (#16).How
newRemoteResource("github_alpine")in the providerResources().NewRemoteGitHubAlpineconvenience constructor mirroringNewRemoteGitHubDeb.artifactapi_remote_github_alpineremote type in the README (metadata-only apk repo synthesizing an APKINDEX from GitHub release.apkassets, downloads redirected to areleases_remote).examples/resources/artifactapi_remote_github_alpine/main.tfmirroring the github_deb example.go build,go vet,go mod tidy,make test(-race), and pre-commit all pass.Adds the metadata-only Alpine/apk analog of the github_deb/github_rpm remotes: exposes a GitHub repo's release .apk assets as an apk repository (synthesized APKINDEX) without precaching, redirecting downloads to a backing releases_remote. - register newRemoteResource("github_alpine") in provider Resources() - add NewRemoteGitHubAlpine convenience ctor - extend provider/metadata/ctor table tests + bump resource count to 22 - document github_alpine remote type in README - add examples/resources/artifactapi_remote_github_alpine/main.tf7d5007b791to719b0dd502