forked from googleforgames/agones
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This is a new static site for Agones, as well as the tools to enable people to write documentation for new features, without it displaying until the feature is released. Integration with cloudbuild for previews is also build in (preview is the current documentation + all the documentation for the new features), as well as a link checker that runs as part of the test suite. This also brings into the codebase all the redirect code for go-get as well as the chart redirects as well. Closes googleforgames#410
- Loading branch information
1 parent
0a2865d
commit be2ffc8
Showing
8,214 changed files
with
333,119 additions
and
1,041 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,6 +18,7 @@ | |
!.gitattributes | ||
!.dockerignore | ||
!.golangci.yml | ||
!.gcloudignore | ||
*.iml | ||
bin | ||
*.o | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
# Copyright 2018 Google Inc. All Rights Reserved. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
|
||
# __ __ _ _ _ | ||
# \ \ / /__| |__ ___(_) |_ ___ | ||
# \ \ /\ / / _ \ '_ \/ __| | __/ _ \ | ||
# \ V V / __/ |_) \__ \ | |_ __/ | ||
# \_/\_/ \___|_.__/|___/_|\__\___| | ||
# | ||
|
||
# | ||
# Website targets | ||
# | ||
|
||
# generate the latest website | ||
site-server: ARGS ?=-F | ||
site-server: ENV ?= RELEASE_VERSION="$(base_version)" | ||
site-server: ensure-build-image | ||
docker run --rm $(common_mounts) --workdir=$(mount_path)/site $(DOCKER_RUN_ARGS) -p 1313:1313 $(build_tag) bash -c \ | ||
"$(ENV) hugo server --watch --baseURL=http://localhost:1313/ --bind=0.0.0.0 $(ARGS)" | ||
|
||
site-static: ensure-build-image | ||
-docker run --rm $(common_mounts) --workdir=$(mount_path)/site $(DOCKER_RUN_ARGS) $(build_tag) rm -r ./public | ||
-mkdir $(agones_path)/site/public | ||
# for some reason, this only work locally | ||
docker run --rm $(common_mounts) --workdir=$(mount_path)/site $(DOCKER_RUN_ARGS) $(build_tag) \ | ||
bash -c "npm list postcss-cli || npm install postcss-cli" | ||
docker run --rm $(common_mounts) --workdir=$(mount_path)/site $(DOCKER_RUN_ARGS) $(build_tag) \ | ||
bash -c "npm list autoprefixer || npm install autoprefixer" | ||
docker run --rm $(common_mounts) --workdir=$(mount_path)/site $(DOCKER_RUN_ARGS) $(build_tag) bash -c \ | ||
"$(ENV) hugo --config=config.toml $(ARGS)" | ||
|
||
site-deploy: SERVICE ?= default | ||
site-deploy: site-static | ||
docker run --rm $(common_mounts) --workdir=$(mount_path)/site $(DOCKER_RUN_ARGS) $(build_tag) bash -c \ | ||
"SERVICE=$(SERVICE) envsubst < app.yaml > .app.yaml" | ||
docker run --rm $(common_mounts) --workdir=$(mount_path)/site $(DOCKER_RUN_ARGS) $(build_tag) \ | ||
gcloud app deploy .app.yaml --no-promote --version=$(shell git rev-parse --short=7 HEAD) | ||
|
||
site-deploy-preview: | ||
$(MAKE) site-deploy ARGS="-F" ENV=RELEASE_VERSION=$(base_version) SERVICE=preview | ||
|
||
site-test: | ||
docker run --rm --name=agones-website $(common_mounts) --workdir=$(mount_path)/site $(DOCKER_RUN_ARGS) $(build_tag) \ | ||
hugo server --watch --baseURL="http://localhost:1313/site/" & | ||
until docker exec agones-website curl -o /dev/null --silent http://localhost:1313/site/; \ | ||
do \ | ||
echo "Waiting for server to start..."; \ | ||
sleep 1; \ | ||
done | ||
( trap 'docker stop agones-website' EXIT; docker exec agones-website linkchecker --anchors http://localhost:1313/site/ ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.