diff options
author | Ian Lewis <ianmlewis@gmail.com> | 2019-04-03 02:32:50 -0400 |
---|---|---|
committer | Ian Lewis <ianlewis@google.com> | 2019-04-05 14:03:52 +0900 |
commit | 383e6cbd07181e8df4987a7b0bad8889e6731afa (patch) | |
tree | 9d0632156f428ab6a7c5b8b408787bf4d6c35f12 /Makefile | |
parent | f28db3f7755e46056b12ba45cffce700873dca4e (diff) |
Updated README to be more contributor friendly
- Remove doc about deploying and running Cloud Builds since that is
mostly handled by CI.
- Re-organize to have info on contributing first.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 25 |
1 files changed, 16 insertions, 9 deletions
@@ -21,8 +21,6 @@ public: public/app.yaml: public cp -vr cmd/gvisor-website/app.yaml public/ - - # Load repositories. upstream: mkdir -p upstream @@ -44,29 +42,38 @@ content/docs/community/sigs: upstream/community $(wildcard upstream/community/si $(GO_TARGET): public $(GO_SOURCE) cd cmd/gvisor-website && find . -name "*.go" -exec cp --parents \{\} ../../public \; -deploy: public/app.yaml - cd public && $(GCLOUD) app deploy -.PHONY: deploy - public/static: node_modules config.toml $(shell find archetypes assets content themes -type f | sed 's/ /\\ /g') $(HUGO) -server: all-upstream - $(HUGO) server -FD --port 8080 - node_modules: package.json package-lock.json # Use npm ci because npm install will update the package-lock.json. # See: https://github.com/npm/npm/issues/18286 $(NPM) ci +# Run a local content development server. Redirects will not be supported. +server: all-upstream + $(HUGO) server -FD --port 8080 +.PHONY: server + +# Deploy the website to App Engine. +deploy: public/app.yaml + cd public && $(GCLOUD) app deploy +.PHONY: deploy + +# CI related Commmands +############################################################################## + +# Submit a build to Cloud Build manually. Used to test cloudbuild.yaml changes. cloud-build: gcloud builds submit --config cloudbuild/cloudbuild.yaml . +# Build and push the hugo Docker image used by Cloud Build. hugo-docker-image: docker build --build-arg HUGO_VERSION=$(HUGO_VERSION) -t gcr.io/gvisor-website/hugo:$(HUGO_VERSION) cloudbuild/hugo/ docker push gcr.io/gvisor-website/hugo:$(HUGO_VERSION) .PHONY: hugo-docker-image +# Build and push the html-proofer image used by Cloud Build. htmlproofer-docker-image: docker build --build-arg HTMLPROOFER_VERSION=$(HTMLPROOFER_VERSION) -t gcr.io/gvisor-website/html-proofer:$(HTMLPROOFER_VERSION) cloudbuild/html-proofer/ docker push gcr.io/gvisor-website/html-proofer:$(HTMLPROOFER_VERSION) |