-
Notifications
You must be signed in to change notification settings - Fork 820
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 #410
- Loading branch information
1 parent
327ece5
commit 76ba758
Showing
8,214 changed files
with
333,141 additions
and
1,043 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,68 @@ | ||
# 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-gen-app-yaml: SERVICE ?= default | ||
site-gen-app-yaml: | ||
docker run --rm $(common_mounts) --workdir=$(mount_path)/site $(DOCKER_RUN_ARGS) $(build_tag) bash -c \ | ||
"SERVICE=$(SERVICE) envsubst < app.yaml > .app.yaml" | ||
|
||
site-deploy: site-gen-app-yaml site-static | ||
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-static-preview: | ||
$(MAKE) site-static ARGS="-F" ENV=RELEASE_VERSION=$(base_version) | ||
|
||
site-deploy-preview: site-static-preview | ||
$(MAKE) site-deploy 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,21 +15,25 @@ and copy it into a release issue. Fill in relevent values, found inside {} | |
- [ ] Ensure the [helm `tag` value][values] is correct (should be the {version} if a full release, {version}-rc if release candidate) | ||
- [ ] Ensure the [helm `Chart` version values][chart] are correct (should be the {version} if a full release, {version}-rc if release candidate) | ||
- [ ] Run `make gen-install` | ||
- [ ] Ensure all example images exist on gcr.io/agones-images | ||
- [ ] If full release, update documentation with updated example images tags | ||
- [ ] If RC release, update all ⚠️⚠️⚠️ warnings to: "**This is currently a release candidate feature**" | ||
- [ ] If full release, remove all instances of "⚠️⚠️⚠️ **This is currently a development feature and has not been released** ⚠️⚠️⚠️" | ||
- [ ] If full release, update install docs with the new release version | ||
- [ ] Ensure all example images exist on gcr.io/agones-images- | ||
- [ ] Create a *draft* release with the [release template][release-template] | ||
- [ ] Make a `tag` with the release version. | ||
- [ ] Site updated | ||
- [ ] If full release, review and remove all instances of the `feature` shortcode | ||
- [ ] Update to the new release branch (`release-branch` in config.toml) to {version}, or {version}-rc if release candidate. | ||
- [ ] If full release, update site with the new release version (`release-version` in config.toml) to {version} | ||
- [ ] If full release, update documentation with updated example images tags | ||
- [ ] Copy the draft release content into a new `/site/content/en/blog/releases` content (this will be what you send via email). | ||
- [ ] Create PR with these changes, and merge them with approval | ||
- [ ] Confirm local git remote `upstream` points at `[email protected]:GoogleCloudPlatform/agones.git` | ||
- [ ] Run `git remote update && git checkout master && git reset --hard upstream/master` to ensure your code is in line with upstream (unless this is a hotfix, then do the same, but for the the release branch) | ||
- [ ] Run `make do-release`. (if release candidate `make do-release RELEASE_VERSION={version}-rc`) to create and push the docker images and helm chart. | ||
- [ ] Run `make do-release`. (if release candidate: `make do-release RELEASE_VERSION={version}-rc`) to create and push the docker images and helm chart. | ||
- [ ] Do a `helm repo add agones https://agones.dev/chart/stable` and verify that the new version is available via the command `helm search agones/` | ||
- [ ] Do a `helm install` and a smoke test to confirm everything is working. | ||
- [ ] Create a release with the [release template][release-template] | ||
- [ ] Make a `tag` with the release version. | ||
- [ ] Attach all assets found in the `release` folder to the release. | ||
- [ ] Send an email to the [mailing list][list] with the release details (copy-paste the github release) | ||
- [ ] Attach all assets found in the `release` folder to the release. | ||
- [ ] Submit the Release. | ||
- [ ] Run `make site-deploy` (if release candidate: `make site-deploy SERVICE=rc`), and make it the default version | ||
- [ ] Send an email to the [mailing list][list] with the release details (copy-paste the release blog post) | ||
- [ ] If full release, then increment the `base_version` in [`build/Makefile`][build-makefile] | ||
- [ ] Ensure the [helm `tag` value][values] is set to the next version (should be the {version}+0.1 if a full release, {version}+0.1-rc if release candidate) | ||
- [ ] Ensure the [helm `Chart` version values][chart] is set to the next version (should be the {version}+0.1 if a full release, {version} if release candidate) | ||
|
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
Oops, something went wrong.