Skip to content

Commit 8ec26d3

Browse files
committed
CB-17 Send the image name in the payload
1 parent 57aed2a commit 8ec26d3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/build-and-push.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
-H "Authorization: token ${{ secrets.PERSONAL_ACCESS_TOKEN }}" \
3939
-H "Accept: application/vnd.github.everest-preview+json" \
4040
https://api.github.com/repos/Chatbot-Builder-Project/chatbot-builder-k8s/dispatches \
41-
-d '{"event_type":"deploy_chatbot_staging", "client_payload": {"image_tag": "staging-${{ github.sha }}"}}'
41+
-d '{"event_type":"deploy_chatbot_staging", "client_payload": {"image_name": "${{ secrets.ACR_LOGIN_SERVER }}/chatbot-builder-api", "image_tag": "staging-${{ github.sha }}"}}'
4242
4343
- name: Trigger production deployment in k8s repo
4444
if: github.ref == 'refs/heads/main'
@@ -47,4 +47,4 @@ jobs:
4747
-H "Authorization: token ${{ secrets.PERSONAL_ACCESS_TOKEN }}" \
4848
-H "Accept: application/vnd.github.everest-preview+json" \
4949
https://api.github.com/repos/Chatbot-Builder-Project/chatbot-builder-k8s/dispatches \
50-
-d '{"event_type":"deploy_chatbot_production", "client_payload": {"image_tag": "prod-${{ github.sha }}"}}'
50+
-d '{"event_type":"deploy_chatbot_production", "client_payload": {"image_name": "${{ secrets.ACR_LOGIN_SERVER }}/chatbot-builder-api", "image_tag": "prod-${{ github.sha }}"}}'

0 commit comments

Comments
 (0)