dpl 1.8.46.travis.2451.5 → 1.8.46.travis.2454.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -0
- data/lib/dpl/provider/pages.rb +4 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9d06fc6a2cffd0c9090ebd7b1241eeb5990f276329524850f1362f063325c73e
|
4
|
+
data.tar.gz: 03b4c230163266626b81e5f0b287750a0bedf4ac81addf70dd9c6181d666c71c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a494e91ac744d90ca1d57fb47b8d02171be1b49bed22c955a212b1b120025b5b2771950af834741610f2ea56e8295f9a39788bffe78f656be3af8083b78d0cd9
|
7
|
+
data.tar.gz: 607f6e84f1a897d9b061cd6f2b212b8fc4f398144ae0c84b93fc8dbedd7666d6e28a3c8f70c5099c7e92b7ab8405d56e8ebda88d70b81dcaf3ae257ac9a7e0b0
|
data/README.md
CHANGED
@@ -528,6 +528,7 @@ You first need to create an [Atlas account](https://atlas.hashicorp.com/account/
|
|
528
528
|
* **project-name**: Defaults to fqdn or repo slug, used for metadata.
|
529
529
|
* **email**: Optional, committer info, defaults to deploy@travis-ci.org.
|
530
530
|
* **name**: Optional, committer, defaults to Deployment Bot.
|
531
|
+
* **deployment-file**: Optional, defaults to false, enables creation of deployment-info files
|
531
532
|
|
532
533
|
#### Examples:
|
533
534
|
|
data/lib/dpl/provider/pages.rb
CHANGED
@@ -17,6 +17,7 @@ module DPL
|
|
17
17
|
- project-name [optional, defaults to fqdn or repo slug]
|
18
18
|
- email [optional, defaults to deploy@travis-ci.org]
|
19
19
|
- name [optional, defaults to Deployment Bot]
|
20
|
+
- deployment-file [optional, defaults to false]
|
20
21
|
"""
|
21
22
|
|
22
23
|
require 'tmpdir'
|
@@ -49,6 +50,8 @@ module DPL
|
|
49
50
|
@gh_email = options[:email] || 'deploy@travis-ci.org'
|
50
51
|
@gh_name = "#{options[:name] || 'Deployment Bot'} (from Travis CI)"
|
51
52
|
|
53
|
+
@deployment_file = !!options[:deployment_file]
|
54
|
+
|
52
55
|
@gh_ref = "#{@gh_url}/#{slug}.git"
|
53
56
|
@gh_remote_url = "https://#{@gh_token}@#{@gh_ref}"
|
54
57
|
@git_push_opts = @keep_history ? '' : ' --force'
|
@@ -167,7 +170,7 @@ module DPL
|
|
167
170
|
def github_commit
|
168
171
|
committer_name, _ = identify_preferred_committer
|
169
172
|
print_step "Preparing to deploy #{@target_branch} branch to gh-pages (workdir: #{Dir.pwd})"
|
170
|
-
context.shell "touch \"deployed at `date` by #{committer_name}\""
|
173
|
+
context.shell "touch \"deployed at `date` by #{committer_name}\"" if @deployment_file
|
171
174
|
context.shell "echo '#{@gh_fqdn}' > CNAME" if @gh_fqdn
|
172
175
|
context.shell 'git add -A .'
|
173
176
|
context.shell "git commit#{@git_commit_opts} -qm 'Deploy #{@project_name} to #{@gh_ref}:#{@target_branch}'"
|