Skip to content

Commit

Permalink
foo
Browse files Browse the repository at this point in the history
  • Loading branch information
randith committed Jun 26, 2019
1 parent b4dea21 commit a544da1
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .gcloudignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# This file specifies files that are *not* uploaded to Google Cloud Platform
# using gcloud. It follows the same syntax as .gitignore, with the addition of
# "#!include" directives (which insert the entries of the given .gitignore-style
# file at that point).
#
# For more information, run:
# $ gcloud topic gcloudignore
#
.gcloudignore
# If you would like to upload your .git directory, .gitignore file or files
# from your .gitignore file, remove the corresponding line
# below:
.git
.gitignore

node_modules
#!include:.gitignore
23 changes: 23 additions & 0 deletions deploy.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#!/usr/bin/env bash
set -ex

# Create or update

pushd "$(dirname "$0")"

# [[ -z "${1}" ]] && echo "missing first argument REGION (i.e. us)" && exit 1
REGION=us

# [[ -z "${2}" ]] && echo "missing second argument ENVIRONMENT (i.e. staging)" && exit 1
ENVIRONMENT=sandbox

# [[ -z "${3}" ]] && echo "missing third argument GOOGLE_COMPUTE_ZONE (i.e. us-central1)" && exit 1
GOOGLE_COMPUTE_ZONE=us-central1

# [[ -z "${4}" ]] && echo "missing fourth argument GCP_PROJECT (i.e. ce-staging-216319)" && exit 1
GCP_PROJECT=ce-admin-218121


gcloud functions deploy gcfexample --trigger-http --region ${GOOGLE_COMPUTE_ZONE} --runtime go111 --timeout 540 --memory 2gb --project ${GCP_PROJECT}

popd

0 comments on commit a544da1

Please sign in to comment.