Skip to content

Commit fdfc21d

Browse files
committed
ansible updates ecs
1 parent 6ae81d5 commit fdfc21d

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

ansible/deploy-ecs-proxies-retag.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66

77
vars:
88
service_id: "{{ lookup('env','service_id') }}"
9-
aws_profile: "build-{{ service_id | lower }}"
9+
APIGEE_ENVIRONMENT: "{{ lookup('env','APIGEE_ENVIRONMENT') }}"
10+
account: "{{ lookup('env','account') }}"
1011

1112
pre_tasks:
1213
- name: include container vars

ansible/roles/build-ecs-proxies/tasks/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
- name: create new repos
2929
command: "{{ aws_cmd }} ecr create-repository --repository-name {{ item }} --tags Key=api-service,Value={{ service_id }}"
3030
with_items: "{{ new_repos }}"
31-
when: new_repos | length > 0
31+
when: new_repos
3232

3333
- name: Read lifecycle policy file
3434
ansible.builtin.slurp:

azure/templates/deploy-service.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,7 @@ steps:
200200
export ASSUMED_VERSION=$(echo $SERVICE_ARTIFACT_NAME | grep -E -o "v[0-9]+\.[0-9]+\.[0-9]+-?[a-z]*" || true | tail -1)
201201
export DEPLOYED_VERSION=${ASSUMED_VERSION:-${{ parameters.fully_qualified_service_name }}}
202202
203+
account=${{ parameters.aws_account }} \
203204
PROXY_VARS_FILE="${proxy_vars_file}" \
204205
SOURCE_COMMIT_ID="$(Build.SourceVersion)" \
205206
RELEASE_RELEASEID="$(Build.BuildId)" \

0 commit comments

Comments
 (0)