Add artifactapi_remote_github_alpine resource #17

Merged
benvin merged 1 commits from benvin/apk-github into main 2026-08-12 20:49:57 +10:00
Member

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 can apk add packages published only as GitHub release .apk assets. Stacks on the apk-local work (#16).

How

  • Register newRemoteResource("github_alpine") in the provider Resources().
  • Add the NewRemoteGitHubAlpine convenience constructor mirroring NewRemoteGitHubDeb.
  • Extend the provider/metadata/constructor table tests and bump the resource count 21 -> 22.
  • Document the artifactapi_remote_github_alpine remote type in the README (metadata-only apk repo synthesizing an APKINDEX from GitHub release .apk assets, downloads redirected to a releases_remote).
  • Add examples/resources/artifactapi_remote_github_alpine/main.tf mirroring the github_deb example.

go build, go vet, go mod tidy, make test (-race), and pre-commit all pass.

## 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 can `apk add` packages published only as GitHub release `.apk` assets. Stacks on the apk-local work (#16). ## How - Register `newRemoteResource("github_alpine")` in the provider `Resources()`. - Add the `NewRemoteGitHubAlpine` convenience constructor mirroring `NewRemoteGitHubDeb`. - Extend the provider/metadata/constructor table tests and bump the resource count 21 -> 22. - Document the `artifactapi_remote_github_alpine` remote type in the README (metadata-only apk repo synthesizing an APKINDEX from GitHub release `.apk` assets, downloads redirected to a `releases_remote`). - Add `examples/resources/artifactapi_remote_github_alpine/main.tf` mirroring the github_deb example. `go build`, `go vet`, `go mod tidy`, `make test` (-race), and pre-commit all pass.
benvin changed target branch from benvin/apk-local to main 2026-08-12 20:41:04 +10:00
unkin-agent added 1 commit 2026-08-12 20:42:13 +10:00
Add artifactapi_remote_github_alpine resource
ci/woodpecker/pr/build Pipeline was successful
ci/woodpecker/pr/test Pipeline was successful
ci/woodpecker/pr/pre-commit Pipeline was successful
719b0dd502
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.tf
unkin-agent force-pushed benvin/apk-github from 7d5007b791 to 719b0dd502 2026-08-12 20:42:13 +10:00 Compare
benvin merged commit 0879921398 into main 2026-08-12 20:49:57 +10:00
benvin deleted branch benvin/apk-github 2026-08-12 20:49:58 +10:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: unkin/terraform-provider-artifactapi#17