1
0
mirror of https://github.com/regclient/regclient.git synced 2025-04-17 11:37:11 +03:00

1529 Commits

Author SHA1 Message Date
Brandon Mitchell
e20c24a1fd
Merge pull request #934 from sudo-bmitch/pr-update-20250413
Version bump
2025-04-13 10:17:08 -04:00
Brandon Mitchell
9664e6c070
Version bump
- GCP helper to v2.1.28
- sigstore/cosign to v2.5.0

Signed-off-by: Brandon Mitchell <git@bmitch.net>
2025-04-13 10:02:22 -04:00
Brandon Mitchell
e514d8b04e
Merge pull request #932 from sudo-bmitch/pr-update-20250406
Version bump
2025-04-06 09:11:57 -04:00
Brandon Mitchell
19a6a46281
Version bump
- Go to v1.24.2
- ECR Helper to latest commit
- anchore/syft to v1.22.0
- library/registry to v3.0.0
- securego/gosec to v2.22.3
- google/osv-scanner to v2.0.1

Signed-off-by: Brandon Mitchell <git@bmitch.net>
2025-04-06 09:03:29 -04:00
Brandon Mitchell
e5a71ed0be
Merge pull request #930 from sudo-bmitch/pr-regctl-tag-rm-missing
Feat: regctl flag to ignore missing images on delete
2025-03-31 16:37:03 -04:00
Brandon Mitchell
fa8d4c61b6
Feat: regctl flag to ignore missing images on delete
Signed-off-by: Brandon Mitchell <git@bmitch.net>
2025-03-31 16:30:29 -04:00
Brandon Mitchell
d4aa53b566
Merge pull request #929 from sudo-bmitch/pr-update-20250331
Version bump
2025-03-31 09:12:24 -04:00
Brandon Mitchell
285427078a
Version bump
- GCR helper to 2.1.27

Signed-off-by: Brandon Mitchell <git@bmitch.net>
2025-03-31 09:09:05 -04:00
Brandon Mitchell
04f515a370
Merge pull request #927 from sudo-bmitch/pr-update-20250323
Version bump
2025-03-23 18:56:51 -04:00
Brandon Mitchell
7c47f8acde
Version bump
- actions/setup-go to v5.4.0
- actions/upload-artifact to v4.6.2
- anchore/syft to v1.21.0

Signed-off-by: Brandon Mitchell <git@bmitch.net>
2025-03-23 18:52:53 -04:00
Brandon Mitchell
ffb12efa6f
Merge pull request #925 from sudo-bmitch/pr-fallback-tag
Feat: Improve fallback tag handling
2025-03-19 15:13:17 -04:00
Brandon Mitchell
6f656a37ba
Feat: Improve fallback tag handling
The fallback tag should handle long digest algorithms, and should not output invalid tag characters.

Signed-off-by: Brandon Mitchell <git@bmitch.net>
2025-03-19 14:59:21 -04:00
Brandon Mitchell
4b212e6273
Merge pull request #924 from sudo-bmitch/pr-regsync-err-handling
Feat: regsync option to abort on errors
2025-03-18 10:59:11 -04:00
Brandon Mitchell
5c7545ec32
Feat: regsync option to abort on errors
This stops regsync from retrying with backoffs when a registry is failing.
Multiple errors are also joined using "errors.Join".
Errors from the canceled context are not propagated up.

Signed-off-by: Brandon Mitchell <git@bmitch.net>
2025-03-18 10:51:23 -04:00
Brandon Mitchell
32e5be148f
Merge pull request #923 from sudo-bmitch/pr-update-20250317
Version bump
2025-03-17 11:46:26 -04:00
Brandon Mitchell
85cebe1af7
Version bump
- ECR Helper to latest commit
- docker/login-action to v3.4.0
- google/osv-scanner to v2.0.0

Signed-off-by: Brandon Mitchell <git@bmitch.net>
2025-03-17 11:40:04 -04:00
Brandon Mitchell
0364600bb5
Merge pull request #921 from sudo-bmitch/pr-update-20250311
Version bump
2025-03-11 11:09:12 -04:00
Brandon Mitchell
e44646a2b8
Version bump
- Go base image to 1.24.1
- securego/gosec to v2.22.2
- dominikh/go-tools (staticcheck) to v0.6.1

Signed-off-by: Brandon Mitchell <git@bmitch.net>
2025-03-11 11:06:05 -04:00
Brandon Mitchell
c16c13ebd6
Merge pull request #920 from sudo-bmitch/pr-escape-regexp
Fix: Escape regexp example
2025-03-08 10:26:36 -05:00
Brandon Mitchell
82c84b0c5e
Fix: Escape regexp example
Signed-off-by: Brandon Mitchell <git@bmitch.net>
2025-03-08 10:20:49 -05:00
Brandon Mitchell
51b1be4110
Merge pull request #918 from sudo-bmitch/pr-hub-docs
Doc: Include Docker Hub repository documentation
2025-03-06 11:00:51 -05:00
Brandon Mitchell
365debc977
Doc: Include Docker Hub repository documentation.
These markdown files are manually copied to the Docker Hub repository.

Signed-off-by: Brandon Mitchell <git@bmitch.net>
2025-03-06 10:55:44 -05:00
Brandon Mitchell
f8fd7f93f4
Merge pull request #917 from sudo-bmitch/pr-check-base-output
Feat: Improve regctl image check-base output
2025-03-06 09:31:50 -05:00
Brandon Mitchell
e9a21b954f
Feat: Improve regctl image check-base output
Output makes it more apparent when the base image has changed.
Tests were added, which required some work to pass through "regclient.Opts".
The empty error message is also suppressed to avoid an extra linefeed to stderr.

Signed-off-by: Brandon Mitchell <git@bmitch.net>
2025-03-05 17:28:10 -05:00
Brandon Mitchell
6a085162bb
Merge pull request #916 from sudo-bmitch/pr-update-20250301
Version bump
2025-03-01 14:50:06 -05:00
Brandon Mitchell
f44d6c1718
Version bump
- ECR helper to latest commit
- actions/upload-artifact to v4.6.1
- docker/build-push-action to v6.15.0
- docker/setup-buildx-action to v3.10.0
- anchore/syft to 1.20.0

Signed-off-by: Brandon Mitchell <git@bmitch.net>
2025-03-01 14:31:27 -05:00
Brandon Mitchell
161f93da0f
Merge pull request #915 from sudo-bmitch/pr-refactor-cobra
Chore: Refactor cobra commands
2025-02-27 11:11:33 -05:00
Brandon Mitchell
288f2c3da0
Chore: Refactor cobra commands
This helps align the different commands with each other.
- Variable names have been improved to be less confusing.
- Flags have been sorted, and completion options added on some flags where missing.
- Each command creates its own options to avoid default flag value conflicts.
- Reusing a command under two paths is now done by calling that commands "new" function.
- Global-but-not-really-global options have been moved to be associated with the specific commands that use them.

Signed-off-by: Brandon Mitchell <git@bmitch.net>
2025-02-27 11:07:58 -05:00
Brandon Mitchell
b753620f11
Merge pull request #913 from sudo-bmitch/pr-update-20250220
Version bump
2025-02-20 15:45:53 -05:00
Brandon Mitchell
a603311c13
Version bump
- Alpine base image to v3.21.3
- Go image to latest commit
- ECR credential helper to latest commit
- docker/build-push-action to v6.14.0
- sigstore/cosign to v2.4.3
- sigstore/cosign-installer to v3.8.1
- github.com/klauspost/compress to v1.18.0
- github.com/spf13/cobra to v1.9.1

Signed-off-by: Brandon Mitchell <git@bmitch.net>
2025-02-20 15:39:28 -05:00
Brandon Mitchell
fa3189e9d8
Merge pull request #912 from sudo-bmitch/pr-whoami
Feat: Adding a whoami command
2025-02-20 15:16:46 -05:00
Brandon Mitchell
ce20c40991
Feat: Adding a whoami command
Signed-off-by: Brandon Mitchell <git@bmitch.net>
2025-02-20 15:09:59 -05:00
Brandon Mitchell
e76dd64760
Merge pull request #911 from sudo-bmitch/pr-validate-registry
Fix: Validate registry names
2025-02-19 11:18:22 -05:00
Brandon Mitchell
260bef6f38
Fix: Validate registry names
The previous fix only validated registry names in the auths section of the docker config.
This also validates names listed in the credential helper or returned from the credential store.

Signed-off-by: Brandon Mitchell <git@bmitch.net>
2025-02-19 11:12:23 -05:00
Brandon Mitchell
a4aa2bd97f
Merge pull request #910 from sudo-bmitch/pr-go-1-22-modernize
Chore: Modernize Go to the 1.22 specs
2025-02-18 14:39:13 -05:00
Brandon Mitchell
95c9152941
Chore: Modernize Go to the 1.22 specs
- Use "any" instead of an empty interface.
- Use range over an integer for for loops.
- Remove shadow variables in loops now that Go no longer reuses the variable.
- Use "slices.Contains", "slices.Delete", "slices.Equal", "slices.Index", "slices.SortFunc".
- Use "cmp.Or", "min", and "max".
- Use "fmt.Appendf" instead of "Sprintf" for generating a byte slice.
- Use "errors.Join" or "fmt.Errorf" with multiple "%w" for multiple errors.

Additionally, use modern regclient features:

- Use "ref.SetTag", "ref.SetDigest", and "ref.AddDigest".
- Call "regclient.ManifestGet" using "WithManifestDesc" instead of setting the digest on the reference.

Signed-off-by: Brandon Mitchell <git@bmitch.net>
2025-02-18 14:32:06 -05:00
Brandon Mitchell
486aedb666
Merge pull request #909 from sudo-bmitch/pr-update-20240514
Version bump including Go
2025-02-14 11:02:26 -05:00
Brandon Mitchell
fd60a24198
Version bump including Go
- Support for Go 1.21 is dropped, leaving 1.22 the minimum release
- Go base image to 1.24.0
- ECR helper to latest commit
- gosec to v2.22.1
- dominikh/go-tools for staticcheck to v0.6.0
- olareg/olareg to v0.1.2
- Fixing staticcheck linter warnings

Signed-off-by: Brandon Mitchell <git@bmitch.net>
2025-02-14 10:57:01 -05:00
Brandon Mitchell
796a9bd489
Merge pull request #908 from sudo-bmitch/pr-auth-by-token
Fix: Allow authentication with a token
2025-02-12 16:07:25 -05:00
Brandon Mitchell
0cd8674a8b
Fix: Allow authentication with a token
This fixes a regression caused by PR #893.

Signed-off-by: Brandon Mitchell <git@bmitch.net>
2025-02-12 15:59:00 -05:00
Brandon Mitchell
2dc14baefb
Merge pull request #906 from sudo-bmitch/pr-update-20250209
Version bump
2025-02-09 10:58:28 -05:00
Brandon Mitchell
ba5783eeba
Version bump
- Go to v1.23.6
- ECR helper to latest commit
- sigstore/cosign to v2.4.2
- docker/setup-buildx-action to v3.9.0
- sigstore/cosign-installer to v3.8.0
- golang.org/x/sys to v0.30.0
- golang.org/x/term to v0.29.0

Security: the Go update fixes CVE-2025-22866
Signed-off-by: Brandon Mitchell <git@bmitch.net>
2025-02-09 10:49:16 -05:00
Brandon Mitchell
dbb1434fd4
Merge pull request #905 from sudo-bmitch/pr-update-20250202
Version bump
2025-02-02 15:21:16 -05:00
Brandon Mitchell
d033ba9691
Version bump
- ECR Helper to latest commit
- kikito/semver.lua to latest commit
- spf13/pflag to v1.0.6

Signed-off-by: Brandon Mitchell <git@bmitch.net>
2025-02-02 15:00:42 -05:00
Brandon Mitchell
ddac7fd478
Merge pull request #904 from sudo-bmitch/pr-interval-overrides-def-sched
Fix: Interval overrides a default schedule in regsync and regbot
2025-02-02 15:00:10 -05:00
Brandon Mitchell
b0cf1a63e0
Fix: interval overrides a default schedule
This affects both regbot and regsync where setting a default schedule would override a sync/script specific interval.

Signed-off-by: Brandon Mitchell <git@bmitch.net>
2025-02-02 14:51:33 -05:00
Brandon Mitchell
a5ec31ab7e
Merge pull request #903 from sudo-bmitch/pr-update-20250126
Version bump
2025-01-26 10:43:30 -05:00
Brandon Mitchell
0fe1d82d97
Version bump
- ECR Helper to latest commit
- actions/setup-go to v5.3.0
- actions/stale to v9.1.0
- docker/build-push-action to v6.13.0
- anchore/syft to v1.19.0
- anchore/sbom-action to v0.18.0

Signed-off-by: Brandon Mitchell <git@bmitch.net>
2025-01-26 10:33:16 -05:00
Brandon Mitchell
d1b36cec79
Merge pull request #901 from sudo-bmitch/pr-slog-levels
Fix: Align log levels with slog
2025-01-24 14:30:14 -05:00
Brandon Mitchell
35faa531d9
Fix: Align log levels with slog
Signed-off-by: Brandon Mitchell <git@bmitch.net>
2025-01-24 14:24:31 -05:00