Commit e6749580 by Brian Beggs Committed by GitHub

Merge pull request #3401 from edx/bbeggs/TE-1717

Reduce SHA1s tagged on images to 7 characters. TE-1717
parents 357721a6 3e0f06be
...@@ -21,8 +21,8 @@ ...@@ -21,8 +21,8 @@
# - ami_wait - (yes/no) should ansible pause while # - ami_wait - (yes/no) should ansible pause while
# - no_reboot - (yes/no) should the instance not be rebooted during AMI creation # - no_reboot - (yes/no) should the instance not be rebooted during AMI creation
# - artifact_path - the path to where this ansible run stores the artifacts for the pipeline # - artifact_path - the path to where this ansible run stores the artifacts for the pipeline
# - edx_app_theme_repo - the edx_app_theme repository # - edxapp_theme_source_repo - the edx_app_theme repository
# - edx_app_theme_version - the edx_app_theme repository version (git hash) # - edxapp_theme_version - the edx_app_theme repository version (git hash)
# - hipchat_token - API token to send messages to hipchat # - hipchat_token - API token to send messages to hipchat
# - hipchat_room - ID or name of the room to send the notification # - hipchat_room - ID or name of the room to send the notification
# - hipchat_url - URL of the hipchat API (defaults to v1 of the api) # - hipchat_url - URL of the hipchat API (defaults to v1 of the api)
...@@ -65,7 +65,7 @@ ...@@ -65,7 +65,7 @@
- name: Create AMI - name: Create AMI
ec2_ami_2_0_0_1: ec2_ami_2_0_0_1:
instance_id: "{{ instance_id }}" instance_id: "{{ instance_id }}"
name: "{{ edx_environment }} -- {{ deployment }} -- {{ play }} -- {{ app_version }} -- {{ extra_name_identifier }}" name: "{{ edx_environment }} -- {{ deployment }} -- {{ play }} -- {{ app_version[:7] }} -- {{ extra_name_identifier }}"
region: "{{ ec2_region }}" region: "{{ ec2_region }}"
wait: "{{ ami_wait }}" wait: "{{ ami_wait }}"
wait_timeout: "{{ ami_creation_timeout }}" wait_timeout: "{{ ami_creation_timeout }}"
...@@ -73,9 +73,9 @@ ...@@ -73,9 +73,9 @@
description: "AMI built via edX continuous delivery pipeline - Ansible version: {{ ansible_version }}" description: "AMI built via edX continuous delivery pipeline - Ansible version: {{ ansible_version }}"
# used a JSON object here as there is a string interpolation in the keys. # used a JSON object here as there is a string interpolation in the keys.
tags: "{ tags: "{
'version:{{ play }}':'{{ app_repo }} {{ app_version }}', 'version:{{ play }}':'{{ app_repo }} {{ app_version[:7] }}',
'version:configuration':'{{ configuration_repo }} {{ configuration_version }}', 'version:configuration':'{{ configuration_repo }} {{ configuration_version[:7] }}',
'version:configuration_secure':'{{ configuration_secure_repo }} {{ configuration_secure_version }}', 'version:configuration_secure':'{{ configuration_secure_repo }} {{ configuration_secure_version[:7] }}',
'play':'{{ play }}', 'play':'{{ play }}',
'cache_id':'{{ cache_id }}', 'cache_id':'{{ cache_id }}',
'environment':'{{ edx_environment }}', 'environment':'{{ edx_environment }}',
...@@ -94,8 +94,8 @@ ...@@ -94,8 +94,8 @@
region: "{{ ec2_region }}" region: "{{ ec2_region }}"
resource: "{{ ami_register.image_id }}" resource: "{{ ami_register.image_id }}"
tags: tags:
version:edxapp_theme: "{{ edx_app_theme_repo }} {{ edx_app_theme_version }}" version:edxapp_theme: "{{ edxapp_theme_source_repo }} {{ edxapp_theme_version[:7] }}"
when: edx_app_theme_version is defined and edx_app_theme_repo is defined when: edxapp_theme_version is defined and edxapp_theme_source_repo is defined
- name: Ensure artifact directory exists - name: Ensure artifact directory exists
file: file:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment