Skip to content

Commit

Permalink
Merge pull request #1124 from roots/add-release-info-to-dot-env
Browse files Browse the repository at this point in the history
Add git_sha and release_version to .env on deploy
  • Loading branch information
swalkinshaw authored Dec 7, 2019
2 parents 4fa593f + 77729cf commit a8e5471
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions roles/deploy/vars/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,7 @@ wordpress_env_defaults:
wp_home: "{{ project.ssl.enabled | default(false) | ternary('https', 'http') }}://{{ project.site_hosts | map(attribute='canonical') | first }}"
wp_siteurl: "{{ project.ssl.enabled | default(false) | ternary('https', 'http') }}://{{ project.site_hosts | map(attribute='canonical') | first }}/wp"
domain_current_site: "{{ project.site_hosts | map(attribute='canonical') | first }}"
git_sha: "{{ git_clone.after }}"
release_version: "{{ deploy_helper.new_release }}"

site_env: "{{ wordpress_env_defaults | combine(vault_wordpress_env_defaults | default({}), project.env | default({}), vault_wordpress_sites[site].env) }}"

0 comments on commit a8e5471

Please sign in to comment.