mirror of
https://github.com/docker/docs.git
synced 2026-11-04 10:01:00 +00:00
refactor: move scripts and utils to hack/ directory
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
This commit is contained in:
1 parent
acb264a20c
commit
c7511a228f
14 files changed
+9
-9
No files matched your search
+2
-2
@@ -112,7 +112,7 @@ RUN apk add --no-cache fd ripgrep
|
||||
WORKDIR /test
|
||||
RUN --mount=type=bind,target=. <<"EOT"
|
||||
set -ex
|
||||
./scripts/test_unused_media.sh
|
||||
./hack/test/unused_media
|
||||
EOT
|
||||
|
||||
# path-warnings checks for duplicate target paths
|
||||
@@ -145,7 +145,7 @@ RUN apk add yq
|
||||
COPY --from=build /project/public ./public
|
||||
RUN --mount=type=bind,target=. <<"EOT"
|
||||
set -ex
|
||||
./scripts/test_go_redirects.sh
|
||||
./hack/test/go_redirects
|
||||
EOT
|
||||
|
||||
# release is an empty scratch image with only compiled assets
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
.PHONY: vendor
|
||||
vendor: ## vendor hugo modules
|
||||
./scripts/vendor.sh
|
||||
./hack/vendor
|
||||
+5
-5
@@ -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
|
||||
#
|
||||
|
||||
target "releaser-build" {
|
||||
context = "_releaser"
|
||||
context = "hack/releaser"
|
||||
target = "releaser"
|
||||
output = ["type=cacheonly"]
|
||||
provenance = false
|
||||
@@ -119,7 +119,7 @@ target "_common-aws" {
|
||||
|
||||
target "aws-s3-update-config" {
|
||||
inherits = ["_common-aws"]
|
||||
context = "_releaser"
|
||||
context = "hack/releaser"
|
||||
target = "aws-s3-update-config"
|
||||
no-cache-filter = ["aws-update-config"]
|
||||
output = ["type=cacheonly"]
|
||||
@@ -127,7 +127,7 @@ target "aws-s3-update-config" {
|
||||
|
||||
target "aws-lambda-invoke" {
|
||||
inherits = ["_common-aws"]
|
||||
context = "_releaser"
|
||||
context = "hack/releaser"
|
||||
target = "aws-lambda-invoke"
|
||||
no-cache-filter = ["aws-lambda-invoke"]
|
||||
output = ["type=cacheonly"]
|
||||
@@ -135,7 +135,7 @@ target "aws-lambda-invoke" {
|
||||
|
||||
target "aws-cloudfront-update" {
|
||||
inherits = ["_common-aws"]
|
||||
context = "_releaser"
|
||||
context = "hack/releaser"
|
||||
target = "aws-cloudfront-update"
|
||||
contexts = {
|
||||
sitedir = DOCS_SITE_DIR
|
||||
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -1,4 +1,4 @@
|
||||
module github.com/docker/docs/_releaser
|
||||
module github.com/docker/docs/hack/releaser
|
||||
|
||||
go 1.22
|
||||
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Reference in new issue
Block a user