refactor: move scripts and utils to hack/ directory

Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
This commit is contained in:
David Karlsson 2024-11-15 09:28:19 +01:00
parent acb264a20c
commit c7511a228f
14 changed files with 9 additions and 9 deletions

View File

@ -112,7 +112,7 @@ RUN apk add --no-cache fd ripgrep
WORKDIR /test WORKDIR /test
RUN --mount=type=bind,target=. <<"EOT" RUN --mount=type=bind,target=. <<"EOT"
set -ex set -ex
./scripts/test_unused_media.sh ./hack/test/unused_media
EOT EOT
# path-warnings checks for duplicate target paths # path-warnings checks for duplicate target paths
@ -145,7 +145,7 @@ RUN apk add yq
COPY --from=build /project/public ./public COPY --from=build /project/public ./public
RUN --mount=type=bind,target=. <<"EOT" RUN --mount=type=bind,target=. <<"EOT"
set -ex set -ex
./scripts/test_go_redirects.sh ./hack/test/go_redirects
EOT EOT
# release is an empty scratch image with only compiled assets # release is an empty scratch image with only compiled assets

View File

@ -1,3 +1,3 @@
.PHONY: vendor .PHONY: vendor
vendor: ## vendor hugo modules vendor: ## vendor hugo modules
./scripts/vendor.sh ./hack/vendor

View File

@ -73,12 +73,12 @@ target "path-warnings" {
} }
# #
# releaser targets are defined in _releaser/Dockerfile # releaser targets are defined in hack/releaser/Dockerfile
# and are used for AWS S3 deployment # and are used for AWS S3 deployment
# #
target "releaser-build" { target "releaser-build" {
context = "_releaser" context = "hack/releaser"
target = "releaser" target = "releaser"
output = ["type=cacheonly"] output = ["type=cacheonly"]
provenance = false provenance = false
@ -119,7 +119,7 @@ target "_common-aws" {
target "aws-s3-update-config" { target "aws-s3-update-config" {
inherits = ["_common-aws"] inherits = ["_common-aws"]
context = "_releaser" context = "hack/releaser"
target = "aws-s3-update-config" target = "aws-s3-update-config"
no-cache-filter = ["aws-update-config"] no-cache-filter = ["aws-update-config"]
output = ["type=cacheonly"] output = ["type=cacheonly"]
@ -127,7 +127,7 @@ target "aws-s3-update-config" {
target "aws-lambda-invoke" { target "aws-lambda-invoke" {
inherits = ["_common-aws"] inherits = ["_common-aws"]
context = "_releaser" context = "hack/releaser"
target = "aws-lambda-invoke" target = "aws-lambda-invoke"
no-cache-filter = ["aws-lambda-invoke"] no-cache-filter = ["aws-lambda-invoke"]
output = ["type=cacheonly"] output = ["type=cacheonly"]
@ -135,7 +135,7 @@ target "aws-lambda-invoke" {
target "aws-cloudfront-update" { target "aws-cloudfront-update" {
inherits = ["_common-aws"] inherits = ["_common-aws"]
context = "_releaser" context = "hack/releaser"
target = "aws-cloudfront-update" target = "aws-cloudfront-update"
contexts = { contexts = {
sitedir = DOCS_SITE_DIR sitedir = DOCS_SITE_DIR

View File

@ -1,4 +1,4 @@
module github.com/docker/docs/_releaser module github.com/docker/docs/hack/releaser
go 1.22 go 1.22