A step that deploys Go applications to Google App Engine.
[v.0.1.0] target-directory
attribute is deprecated. Please use cwd
wercker built-in attribute.
method
-goapp
argument. Option is below. (required)cwd
(wercker built-in) - change current directory to specified dir. (optional)
- e.g. go source files are located in
/src/proj
and you'll dogoapp get
, setcwd
to/src/proj
. - e.g. app.yaml is located in
/
and you'll dogoapp deploy
, may not be setcwd
to/
because WERCKER_SRC is/
.
gopath
- additional GOPATH env variant. (optional)
- Default GOPATH is
$WERCKER_CACHE_DIR/gopath
(for output directory ofgoapp get
). - If you set this option, GOPATH is
$WERCKER_CACHE_DIR/gopath:(additional GOPATH)
- If your repo is aimed to set
$WERCKER_SOURCE_DIR
( equal git repo root ) as GOPATH, this option is useful.
This method's current dir SHOULD contains app.yaml
.
token
- The OAuth 2.0 refresh token of the Google account to use for deployment. (required if using deploy method)
build:
steps:
- keima/go-appengine-util:
cwd: path/to/gocode/
method: get
- keima/go-appengine-util:
cwd: path/to/gocode/
method: test
- keima/go-appengine-util:
cwd: path/to/gocode/
method: build
deploy:
steps:
- keima/go-appengine-util:
method: deploy
cwd: path/to/appyaml/
token: $APP_ENGINE_TOKEN