Commit Graph

74 Commits

Author SHA1 Message Date
Anthony Oteri fbe43f03f1 Support deleting an image tag
If the Docker Registry API allows for images to be deleted, issuing the
command `delete <image> <tag>` will result in the tag being removed from
the server.

A limitation of this change is that it will cause any unreferenced tags
to become orphaned, requiring the garbage collector within the docker
registry server to clean these up.  This is because there is no way to
efficiently determine if each of the layers are reused by other tags or
images on the server.

Implement delete logic

Fix broken unit tests
2023-09-29 18:04:08 -04:00
Anthony Oteri 48070cff1f Merge pull request #45 from anthonyoteri/replace-femme-with-simple-logger
Replace Femme with SimpleLogger
2023-09-29 15:13:45 -04:00
Anthony Oteri 13ae092b91 Replace femme logger with simple_logger 2023-09-29 15:05:23 -04:00
Anthony Oteri b0239fb049 Fix script to update release notes v0.1.0 2023-09-29 14:53:35 -04:00
Anthony Oteri ed84e92112 Release version 0.1.0 2023-09-29 14:34:34 -04:00
Anthony Oteri cfdefb287c Additional scripts for managing the release process 2023-09-29 14:29:35 -04:00
Anthony Oteri 60acc6921c Replace deprecated actions v0.1.0-rc1 2023-09-29 12:13:53 -04:00
Anthony Oteri 7ba2359db5 Fix syntax error 2023-09-29 12:05:39 -04:00
Anthony Oteri c6294dc83e Fix name of rust-docs component 2023-09-29 12:01:09 -04:00
Anthony Oteri a47b4369f8 Add task to build documentation 2023-09-29 11:58:24 -04:00
Anthony Oteri b8d64542f2 Use lowercase filename and fix windows tar command 2023-09-29 11:41:12 -04:00
Anthony Oteri ce6bd4b46a Fix path of release binary 2023-09-29 11:35:42 -04:00
Anthony Oteri ab419fede0 Use extension in filename 2023-09-29 11:33:24 -04:00
Anthony Oteri cab6e40050 Use ref-name instead of ref for version 2023-09-29 11:28:54 -04:00
Anthony Oteri b12e5e4c7b Use gzip files to differentiate versions 2023-09-29 11:04:07 -04:00
Anthony Oteri 452a136b17 Split out release-assets job for windows from mac/linux 2023-09-29 10:39:21 -04:00
Anthony Oteri b676e7e220 Add permission to write contents to release_asset workflow 2023-09-28 17:55:41 -04:00
Anthony Oteri 5f1a98ded8 Add permission to write contents to release workflow 2023-09-28 17:45:11 -04:00
Anthony Oteri faf9ef5d73 Merge pull request #43 from anthonyoteri/support-release-workflow
Create Release Workflow
2023-09-28 17:39:01 -04:00
Anthony Oteri 8c737a9833 Create release workflow 2023-09-28 17:35:31 -04:00
Anthony Oteri 077ec6f5b9 Merge pull request #41 from anthonyoteri/image-detail-view
Support showing details of a tagged image
2023-09-27 10:13:52 -04:00
Anthony Oteri 86c82b2f76 Support detail view of a tagged image
Running the `dredge <REGISTRY> show <image> <tag>` now responds
with additional output in the form:

```yaml
name: foobar
tag: latest
architecture: amd64
fsLayers:
- blobSum: sha256:a3ed95caeb02ffe68cdd9fd84406680ae93d633cb16422d00e8a7c22955b46d4
- blobSum: sha256:d4228a16bba21ff0eabab548df8f4933103d1a83e5894216c7eb32e3058a8e5e
- blobSum: sha256:1f25ec90921b9d511541f9d38ce2b339de2afffc586e55d75b7345b2057f1993
- blobSum: sha256:a3ed95caeb02ffe68cdd9fd84406680ae93d633cb16422d00e8a7c22955b46d4
- blobSum: sha256:7d97e254a0461b0a30b3f443f1daa0d620a3cc6ff4e2714cc1cfd96ace5b7a7e
digest: sha256:0259571889ac87efbfca5b79a0abe9baf626d058ec5f9a5744bace2229d9ed50
etag: sha256:0259571889ac87efbfca5b79a0abe9baf626d058ec5f9a5744bace2229d9ed50
```
2023-09-27 10:09:52 -04:00
Anthony Oteri bc52542c83 Merge pull request #37 from anthonyoteri/additional-test-cases
Additional test coverage
2023-09-26 23:04:53 -04:00
Anthony Oteri 1ebe0bba84 Fix clippy error 2023-09-26 23:01:58 -04:00
Anthony Oteri 2e10f9b5f7 Automated code cleanup 2023-09-26 23:01:58 -04:00
Anthony Oteri e83cdef39c Additional test coverage for parsing the registry arg 2023-09-26 23:01:58 -04:00
Anthony Oteri fc85e14465 Additional test coverage around the CLI 2023-09-26 23:01:58 -04:00
Anthony Oteri 444ed28d4d Add some unit test coverage for the RFC5988 parsing 2023-09-26 23:01:58 -04:00
Anthony Oteri 26fec313a7 Merge pull request #36 from anthonyoteri/update-cargo-toml
Update repository metadata
2023-09-26 22:59:18 -04:00
Anthony Oteri 572416d3fa Update metadata in Cargo.toml 2023-09-26 22:57:39 -04:00
Anthony Oteri cd4220cc05 Merge pull request #35 from anthonyoteri/unit-tests 2023-09-26 20:58:18 -04:00
Anthony Oteri a6cd95bfa4 Add unit tests for existing commands 2023-09-26 16:09:52 -04:00
dependabot[bot] 4687857531 Merge pull request #34 from anthonyoteri/dependabot/github_actions/actions/checkout-4 2023-09-26 17:49:44 +00:00
dependabot[bot] 2c9391bc5a Bump actions/checkout from 3 to 4
Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-26 17:32:24 +00:00
Anthony Oteri 292b44645a Merge pull request #33 from anthonyoteri/additional-github-integrations
Additional Github Integrations
2023-09-26 13:32:00 -04:00
Anthony Oteri de72ec53aa Test on Linux/Mac/Windows 2023-09-26 13:27:37 -04:00
Anthony Oteri e5f2a9f54c Add dependabot integrations for github-actions 2023-09-26 13:27:11 -04:00
Anthony Oteri 063f1f4f93 Add FUNDING.yml 2023-09-26 13:26:52 -04:00
Anthony Oteri b5ebc5b4e1 Merge pull request #31 from anthonyoteri/code-of-conduct
Create CODE_OF_CONDUCT.md
2023-09-22 08:32:16 -04:00
Anthony Oteri faa6cbbfe1 Merge pull request #32 from anthonyoteri/issue-templates
Update issue templates
2023-09-22 08:31:52 -04:00
Anthony Oteri dd5bde091e Update issue templates 2023-09-22 08:30:14 -04:00
Anthony Oteri 1951c2cb4d Create CODE_OF_CONDUCT.md 2023-09-22 08:28:05 -04:00
Anthony Oteri 41ddcb1f5d Update README.md with current documentation 2023-09-21 16:33:18 -04:00
Anthony Oteri 9a7cb368f9 Merge pull request #30 from anthonyoteri/more-misc-cleanup
More miscellaneous code cleanup
2023-09-21 16:19:52 -04:00
Anthony Oteri 031ea891ec Run automated code cleanup 2023-09-21 16:18:44 -04:00
Anthony Oteri 79aabc1dac More miscellaneous code cleanup 2023-09-21 16:17:51 -04:00
Anthony Oteri c97f19f7cb Merge pull request #28 from anthonyoteri/misc-cleanup
Miscellaneous code cleanup
2023-09-21 15:57:50 -04:00
Anthony Oteri cead0006a4 Miscellaneous code cleanup 2023-09-21 15:56:34 -04:00
Anthony Oteri 97275a9dcd Merge pull request #27 from anthonyoteri/repository-url-as-arg
Support for specifying the URL on the command line
2023-09-21 15:36:12 -04:00
Anthony Oteri 535e08e9bb Support for specifying the URL on the command line 2023-09-21 15:34:19 -04:00