Skip to content

Commit c7511a2

Browse files
committedNov 15, 2024
refactor: move scripts and utils to hack/ directory
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
1 parent acb264a commit c7511a2

14 files changed

+9
-9
lines changed
 

‎Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ RUN apk add --no-cache fd ripgrep
112112
WORKDIR /test
113113
RUN --mount=type=bind,target=. <<"EOT"
114114
set -ex
115-
./scripts/test_unused_media.sh
115+
./hack/test/unused_media
116116
EOT
117117

118118
# path-warnings checks for duplicate target paths
@@ -145,7 +145,7 @@ RUN apk add yq
145145
COPY --from=build /project/public ./public
146146
RUN --mount=type=bind,target=. <<"EOT"
147147
set -ex
148-
./scripts/test_go_redirects.sh
148+
./hack/test/go_redirects
149149
EOT
150150

151151
# release is an empty scratch image with only compiled assets

‎Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
.PHONY: vendor
22
vendor: ## vendor hugo modules
3-
./scripts/vendor.sh
3+
./hack/vendor

‎docker-bake.hcl

+5-5
Original file line numberDiff line numberDiff line change
@@ -73,12 +73,12 @@ target "path-warnings" {
7373
}
7474

7575
#
76-
# releaser targets are defined in _releaser/Dockerfile
76+
# releaser targets are defined in hack/releaser/Dockerfile
7777
# and are used for AWS S3 deployment
7878
#
7979

8080
target "releaser-build" {
81-
context = "_releaser"
81+
context = "hack/releaser"
8282
target = "releaser"
8383
output = ["type=cacheonly"]
8484
provenance = false
@@ -119,23 +119,23 @@ target "_common-aws" {
119119

120120
target "aws-s3-update-config" {
121121
inherits = ["_common-aws"]
122-
context = "_releaser"
122+
context = "hack/releaser"
123123
target = "aws-s3-update-config"
124124
no-cache-filter = ["aws-update-config"]
125125
output = ["type=cacheonly"]
126126
}
127127

128128
target "aws-lambda-invoke" {
129129
inherits = ["_common-aws"]
130-
context = "_releaser"
130+
context = "hack/releaser"
131131
target = "aws-lambda-invoke"
132132
no-cache-filter = ["aws-lambda-invoke"]
133133
output = ["type=cacheonly"]
134134
}
135135

136136
target "aws-cloudfront-update" {
137137
inherits = ["_common-aws"]
138-
context = "_releaser"
138+
context = "hack/releaser"
139139
target = "aws-cloudfront-update"
140140
contexts = {
141141
sitedir = DOCS_SITE_DIR
File renamed without changes.
File renamed without changes.

‎_releaser/go.mod renamed to ‎hack/releaser/go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module github.com/docker/docs/_releaser
1+
module github.com/docker/docs/hack/releaser
22

33
go 1.22
44

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)
Please sign in to comment.