mirror of
https://github.com/golang/go
synced 2024-11-18 14:14:46 -07:00
ee6b03148c
See bug for more details on exactly what was migrated. Notably: * No more Google-internal deployment scripts; see README.godoc-app and the Makefile for details. * Build tag "golangorg" is used for the godoc configuration used for golang.org. * Use of App Engine libraries replaced with GCP client libraries. * Redis is used to replace App Engine memcache. * Google analytics is controlled by an environment variable. * Regression tests have been migrated from Google-internal. * hg -> git hash map is moved from Google-internal. Updates golang/go#27205. Change-Id: Ia0a983f239c50eda8be2363494c8b784f60c2c6d Reviewed-on: https://go-review.googlesource.com/133355 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
25 lines
765 B
Makefile
25 lines
765 B
Makefile
# Copyright 2018 The Go Authors. All rights reserved.
|
|
# Use of this source code is governed by a BSD-style
|
|
# license that can be found in the LICENSE file.
|
|
|
|
.PHONY: usage
|
|
|
|
usage:
|
|
echo "See Makefile"
|
|
exit 1
|
|
|
|
docker-prod: Dockerfile.prod
|
|
cd ../..; docker build -f cmd/godoc/Dockerfile.prod --tag=gcr.io/golang-org/godoc:$(VERSION) .
|
|
|
|
push-prod: docker-prod
|
|
docker push gcr.io/golang-org/godoc:$(VERSION)
|
|
|
|
deploy-prod: push-prod
|
|
gcloud -q app deploy app.prod.yaml --project golang-org --no-promote --image-url gcr.io/golang-org/godoc:$(VERSION)
|
|
|
|
get-latest-url:
|
|
@gcloud app versions list -s default --project golang-org --sort-by=~version.createTime --format='value(version.versionUrl)' --limit 1 | cut -f1
|
|
|
|
regtest:
|
|
./regtest.bash $(shell make get-latest-url)
|