feat: add artifactapi_local_docker resource #11

Merged
benvin merged 1 commits from benvin/local-docker into main 2026-07-05 16:56:48 +10:00
Owner

Why

The artifactapi server now serves local docker repos as real container registries (push + pull via the Docker Registry HTTP API V2), but the provider had no resource to declare one — only remote docker proxies and local terraform/pypi/rpm repos.

Changes

  • Add the artifactapi_local_docker resource (package_type=docker, repo_type=local), mirroring the other local resources: name + description, managed via /api/v2/remotes.
  • Register it in the provider and update the resource-count/type tests.
  • Add unit tests, an example, and a Local Resources section to the README.

Verification

  • make lint and make test pass.
## Why The artifactapi server now serves local `docker` repos as real container registries (push + pull via the Docker Registry HTTP API V2), but the provider had no resource to declare one — only remote docker proxies and local terraform/pypi/rpm repos. ## Changes - Add the `artifactapi_local_docker` resource (`package_type=docker`, `repo_type=local`), mirroring the other local resources: `name` + `description`, managed via `/api/v2/remotes`. - Register it in the provider and update the resource-count/type tests. - Add unit tests, an example, and a Local Resources section to the README. ## Verification - `make lint` and `make test` pass.
unkinben added 1 commit 2026-07-04 22:37:22 +10:00
feat: add artifactapi_local_docker resource
ci/woodpecker/pr/build Pipeline was successful
ci/woodpecker/pr/test Pipeline was successful
ci/woodpecker/pr/pre-commit Pipeline was successful
30b414141a
The artifactapi server now serves local docker repos as real container
registries, but the provider had no resource to declare one — only remote
docker proxies and local terraform/pypi/rpm repos.

- Add the artifactapi_local_docker resource (package_type=docker,
  repo_type=local), mirroring the other local resources: name + description,
  managed via /api/v2/remotes.
- Register it in the provider and update the resource-count/type tests.
- Add unit tests, an example, and a Local Resources section to the README.
benvin merged commit a232a26bf5 into main 2026-07-05 16:56:48 +10:00
benvin deleted branch benvin/local-docker 2026-07-05 16:56:48 +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#11