1
0
mirror of https://github.com/docker/docs.git synced 2026-10-25 06:09:46 +03:00
Commit Graph

7 Commits

Author SHA1 Message Date
David Karlsson
58403db11d hack/releaser: preserve query string on CloudFront redirects (#25393)
## Summary

The CloudFront redirect Lambda (`cloudfront-lambda-redirects.js`)
dropped the request query string when issuing 301 responses, so UTM tags
and other params were lost on redirected URLs. This appends the query
string to the `Location` header of both the exact-match and prefix
redirects (the directory/markdown rewrite branch already forwards the
request, so params survive there).

Adds unit tests (`node --test`, zero dependencies) that render the Go
template the same way `aws.go` does and exercise the handler. The tests
run in CI via a new `releaser-test` Dockerfile stage / bake target,
baked alongside `releaser-build` in the existing `releaser` job.

## Learnings

- The redirect Lambda source is a Go `text/template`
(`{{.RedirectsJSON}}` / `{{.RedirectsPrefixesJSON}}`), rendered and
zipped by `hack/releaser/aws.go`. To unit-test it, substitute the
placeholders the same way `aws.go` does, then evaluate the result as a
CommonJS module.
- `test-go-redirects` validates redirect *data* against the built
`public/` site, so it's the wrong host for a fast pure-JS test — the
`releaser` job, which already builds from `hack/releaser`, is the
natural home and has no Hugo dependency.

Generated by Claude Code

---------

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-23 11:42:09 +02:00
Dorin Geman
da3893027f vendor: github.com/docker/model-runner/cmd/cli v1.1.9-0.20260303081710-59280ed7abd5
See changes in https://github.com/docker/model-runner/compare/cmd/cli/v1.0.3...59280ed7abd5dc3859c6ed83277af7b868e08d79

Signed-off-by: Dorin Geman <dorin.geman@docker.com>
2026-03-03 13:55:10 +02:00
CrazyMax
6a093939d4 update go to 1.25
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2026-01-27 12:18:05 +01:00
Eng Zer Jun
9103dff58a Merge pull request #22388 from Juneezee/go-mod-mounts
docs: use bind mounts in Go Dockerfile examples
2026-01-22 08:28:53 +01:00
CrazyMax
ad14af69ba releaser: remove s3-config handling
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2025-10-22 14:14:20 +02:00
CrazyMax
4084a45650 update go to 1.24
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2025-05-13 15:14:28 +02:00
David Karlsson
c7511a228f refactor: move scripts and utils to hack/ directory
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2024-11-15 09:28:19 +01:00