Skip to content

Commit 6603ba5

Browse files
committed
restored
1 parent 33c69b8 commit 6603ba5

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

azure/templates/post-deploy.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,26 @@ steps:
8181
workingDirectory: "$(Pipeline.Workspace)/s/$(SERVICE_NAME)/$(SERVICE_ARTIFACT_NAME)"
8282
retryCountOnTaskFailure: 2
8383
84+
- ${{ if eq(parameters.subscribe_to_mns, true) }}:
85+
- bash: |
86+
export AWS_PROFILE=apim-dev
87+
echo "Subscribing SQS to MNS for notifications."
88+
pyenv install -s 3.11.11
89+
pyenv local 3.11.11
90+
echo "Setting up poetry environment..."
91+
poetry env use 3.11
92+
poetry install --no-root
93+
94+
echo "Setting PYTHONPATH..."
95+
export PYTHONPATH=$(Pipeline.Workspace)/s/$(SERVICE_NAME)/$(SERVICE_ARTIFACT_NAME)/mns_subscription
96+
97+
echo "Subscribing SQS to MNS for notifications..."
98+
poetry run python src/subscribe_mns.py
99+
displayName: "Run MNS Subscription"
100+
workingDirectory: "$(Pipeline.Workspace)/s/$(SERVICE_NAME)/$(SERVICE_ARTIFACT_NAME)/mns_subscription"
101+
env:
102+
SQS_ARN: "$(ID_SYNC_QUEUE_ARN)"
103+
84104
- bash: |
85105
set -ex
86106

0 commit comments

Comments
 (0)