Skip to content

Commit e3247f2

Browse files
committed
release update
1 parent 613f5f1 commit e3247f2

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

azure/templates/deploy-service.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -201,18 +201,23 @@ steps:
201201
202202
source $(SERVICE_DIR)/.build_env_vars
203203
204+
export PULL_REQUEST="${{ parameters.pr_label }}"
205+
echo "DEBUG: PULL_REQUEST='${PULL_REQUEST}'"
206+
204207
export ASSUMED_VERSION=$(echo $SERVICE_ARTIFACT_NAME | grep -E -o "v[0-9]+\.[0-9]+\.[0-9]+-?[a-z]*" || true | tail -1)
205208
export DEPLOYED_VERSION=${ASSUMED_VERSION:-${{ parameters.fully_qualified_service_name }}}
206-
export TF_VAR_use_ecs_tag=$([[ "${is_pull_request}" == "false" ]] && echo true || echo false)
207-
209+
210+
export TF_VAR_use_ecs_tag=$([[ "${PULL_REQUEST}" == "false" ]] && echo true || echo false)
211+
echo "DEBUG: TF_VAR_use_ecs_tag='${TF_VAR_use_ecs_tag}'"
212+
208213
account=${{ parameters.aws_account }} \
209214
CONTAINER_VARS_FILE="${CONTAINER_VARS_FILE}" \
210215
SOURCE_COMMIT_ID="$(Build.SourceVersion)" \
211216
RELEASE_RELEASEID="$(Build.BuildId)" \
212217
make --no-print-directory -C $(UTILS_DIR)/ansible deploy-ecs-proxies-retag
213218
214219
displayName: Retag ECS image
215-
condition: and(succeeded(), ne(variables['DEPLOY_ROLE'], ''), eq(variables['is_pull_request'], 'false'))
220+
condition: and(succeeded(), ne(variables['DEPLOY_ROLE'], ''), eq('${{ parameters.pr_label }}', 'false'))
216221
217222
- template: ../components/aws-assume-role.yml
218223
parameters:

0 commit comments

Comments
 (0)