dpl 1.8.7.travis.1144.4 → 1.8.7.travis.1145.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/README.md +4 -2
- data/lib/dpl/provider/gae.rb +8 -3
- data/spec/provider/gae_spec.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MjAwYTVlNDQzNTI0MjI3ZWFhNGQzNTUyNDMyZmJkZTk2NWQ1ZDg1MA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZTE4YjJkZjJkZmE4NzQwMTA3Y2U3YTdkZWRlNmQ5YzQ2Y2Q5ZTAxNQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MGM5NmU2NzNkZjRjYzhmZmY3ZjExZmMyY2UwMTJlZTUyNjRjMjg4MDhhNzgx
|
10
|
+
Mjg4MTIyN2RiYmE3ZDI5NTMxOThmNjM1MmZjMjdjNTQxZDJkNWFmNmM2N2E5
|
11
|
+
ZmQ5Mzg0OWRjNGUyNzQ1Zjg0ODlhOTdiMGExM2MyM2Q5Zjk2Zjg=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NDUxNTNlY2Q3ZGY4ZjY2YWY4MTFiYTc1MDQxYmFkMzRjODhhMTQ4OWU1MDJj
|
14
|
+
OTI5MGNlZmRkMGU1NTIxOTg1MjUzMTViMjNhZGE0Y2IwYTUyYjVmNTEwOWU1
|
15
|
+
NTVjZjA2YzQwZGM1ZmVmOGRkZTgzNDQwYzg4NjFhNGViODUxZjI=
|
data/README.md
CHANGED
@@ -775,6 +775,7 @@ Deployment will be marked a failure if the script exits with nonzero status.
|
|
775
775
|
|
776
776
|
Deploys to Google App Engine and Google App Engine Managed VMs via the Google Cloud SDK and
|
777
777
|
it's [`gcloud` tool](https://cloud.google.com/sdk/gcloud/) using a [Service Account](https://developers.google.com/console/help/new/#serviceaccounts).
|
778
|
+
In order to use this provider, please make sure you have the [App Engine Admin API](https://developers.google.com/apis-explorer/#p/appengine/v1beta4/) enabled [in the Google Developers Console](https://console.developers.google.com/project/_/apiui/apiview/appengine/overview).
|
778
779
|
|
779
780
|
#### Options:
|
780
781
|
|
@@ -782,9 +783,10 @@ it's [`gcloud` tool](https://cloud.google.com/sdk/gcloud/) using a [Service Acco
|
|
782
783
|
* **keyfile**: Path to the JSON file containing your [Service Account](https://developers.google.com/console/help/new/#serviceaccounts) credentials in [JSON Web Token](https://tools.ietf.org/html/rfc7519) format. To be obtained via the [Google Developers Console](https://console.developers.google.com/project/_/apiui/credential). Defaults to `"service-account.json"`. Note that this file should be handled with care as it contains authorization keys.
|
783
784
|
* **config**: Path to your module configuration file. Defaults to `"app.yaml"`. This file is runtime dependent ([Go](https://cloud.google.com/appengine/docs/go/config/appconfig), [Java](https://cloud.google.com/appengine/docs/java/configyaml/appconfig_yaml), [PHP](https://developers.google.com/console/help/new/#projectnumber), [Python](https://cloud.google.com/appengine/docs/python/config/appconfig))
|
784
785
|
* **version**: The version of the app that will be created or replaced by this deployment. If you do not specify a version, one will be generated for you. See [`gcloud preview app deploy`](https://cloud.google.com/sdk/gcloud/reference/preview/app/deploy)
|
785
|
-
* **
|
786
|
+
* **no_promote**: Flag to not promote the deployed version. See [`gcloud preview app deploy`](https://cloud.google.com/sdk/gcloud/reference/preview/app/deploy)
|
786
787
|
* **verbosity**: Let's you adjust the verbosity when invoking `"gcloud"`. Defaults to `"warning"`. See [`gcloud`](https://cloud.google.com/sdk/gcloud/reference/).
|
787
788
|
* **docker_build**: If deploying a Managed VM, specifies where to build your image. Typical values are `"remote"` to build on Google Cloud Engine and `"local"` which requires Docker to be set up properly (to utilize this on Travis CI, read [Using Docker on Travis CI](http://blog.travis-ci.com/2015-08-19-using-docker-on-travis-ci/)). Defaults to `"remote"`.
|
789
|
+
* **no_stop_previous_version**: Flag to prevent your deployment from stopping the previously promoted version. This is from the future, so might not work (yet). See [`gcloud preview app deploy`](https://cloud.google.com/sdk/gcloud/reference/preview/app/deploy)
|
788
790
|
|
789
791
|
#### Environment variables:
|
790
792
|
|
@@ -793,4 +795,4 @@ it's [`gcloud` tool](https://cloud.google.com/sdk/gcloud/) using a [Service Acco
|
|
793
795
|
|
794
796
|
#### Example:
|
795
797
|
|
796
|
-
dpl --provider=gae --project=example --
|
798
|
+
dpl --provider=gae --project=example --no_promote=true
|
data/lib/dpl/provider/gae.rb
CHANGED
@@ -54,8 +54,8 @@ module DPL
|
|
54
54
|
options[:config] || 'app.yaml'
|
55
55
|
end
|
56
56
|
|
57
|
-
def
|
58
|
-
options[:
|
57
|
+
def no_promote
|
58
|
+
options[:no_promote]
|
59
59
|
end
|
60
60
|
|
61
61
|
def verbosity
|
@@ -66,6 +66,10 @@ module DPL
|
|
66
66
|
options[:docker_build] || 'remote'
|
67
67
|
end
|
68
68
|
|
69
|
+
def no_stop_previous_version
|
70
|
+
options[:no_stop_previous_version]
|
71
|
+
end
|
72
|
+
|
69
73
|
def push_app
|
70
74
|
command = GCLOUD
|
71
75
|
command << ' --quiet'
|
@@ -74,7 +78,8 @@ module DPL
|
|
74
78
|
command << " preview app deploy \"#{config}\""
|
75
79
|
command << " --version \"#{version}\""
|
76
80
|
command << " --docker-build \"#{docker_build}\""
|
77
|
-
command <<
|
81
|
+
command << " --#{no_promote ? 'no-' : ''}promote"
|
82
|
+
command << (no_stop_previous_version ? '--no-stop-previous-version' : '')
|
78
83
|
unless context.shell(command)
|
79
84
|
error 'Deployment failed.'
|
80
85
|
end
|
data/spec/provider/gae_spec.rb
CHANGED
@@ -8,7 +8,7 @@ describe DPL::Provider::GAE do
|
|
8
8
|
|
9
9
|
describe '#push_app' do
|
10
10
|
example 'with defaults' do
|
11
|
-
expect(provider.context).to receive(:shell).with("#{DPL::Provider::GAE::GCLOUD} --quiet --verbosity \"warning\" --project \"test\" preview app deploy \"app.yaml\" --version \"\" --docker-build \"remote\"").and_return(true)
|
11
|
+
expect(provider.context).to receive(:shell).with("#{DPL::Provider::GAE::GCLOUD} --quiet --verbosity \"warning\" --project \"test\" preview app deploy \"app.yaml\" --version \"\" --docker-build \"remote\" --promote").and_return(true)
|
12
12
|
provider.push_app
|
13
13
|
end
|
14
14
|
end
|