From 6b03e4fd9670f865216a773545ea4a0bbf534582 Mon Sep 17 00:00:00 2001 From: Shulhan Date: Fri, 29 May 2020 00:35:50 +0700 Subject: cmd: add deployment script for App Engine --- .gcloudignore | 25 +++++++++++++++++++++++++ cmd/bot-kbbi/app.yaml | 9 +++++++++ cmd/www-kbbi/app.yaml | 8 ++++++++ 3 files changed, 42 insertions(+) create mode 100644 .gcloudignore create mode 100644 cmd/bot-kbbi/app.yaml create mode 100644 cmd/www-kbbi/app.yaml diff --git a/.gcloudignore b/.gcloudignore new file mode 100644 index 0000000..199e6d9 --- /dev/null +++ b/.gcloudignore @@ -0,0 +1,25 @@ +# 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 + +# Binaries for programs and plugins +*.exe +*.exe~ +*.dll +*.so +*.dylib +# Test binary, build with `go test -c` +*.test +# Output of the go coverage tool, specifically when used with LiteIDE +*.out \ No newline at end of file diff --git a/cmd/bot-kbbi/app.yaml b/cmd/bot-kbbi/app.yaml new file mode 100644 index 0000000..89bf31a --- /dev/null +++ b/cmd/bot-kbbi/app.yaml @@ -0,0 +1,9 @@ +service: bot-kbbi +runtime: go113 +instance_class: F2 +automatic_scaling: + max_instances: 1 +env_variables: + DEBUG: "2" + TELEGRAM_TOKEN: "1121465148:AAH9vI-DkHUOPGTmy1Js0dxKSHLYIIkXaIE" + TELEGRAM_WEBHOOK_URL: "https://bot-kbbi-dot-kamuskubot.df.r.appspot.com" diff --git a/cmd/www-kbbi/app.yaml b/cmd/www-kbbi/app.yaml new file mode 100644 index 0000000..580f7ea --- /dev/null +++ b/cmd/www-kbbi/app.yaml @@ -0,0 +1,8 @@ +service: default +runtime: go113 +instance_class: F2 +automatic_scaling: + max_instances: 1 +env_variables: + KBBI_SUREL: "m.shulhan@gmail.com" + KBBI_SANDI: "tyuiopKEMDIKBUD5810" -- cgit v1.3