-
Notifications
You must be signed in to change notification settings - Fork 5
/
acr-task-flask.yaml
21 lines (21 loc) · 1015 Bytes
/
acr-task-flask.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
version: 1.0-preview-1
steps:
- id: build-image
build: -t {{.Run.Registry}}/chzbrgr71/edsheeran-flask-app:build-{{.Run.ID}} .
- id: push-image
push: ["{{.Run.Registry}}/chzbrgr71/edsheeran-flask-app:build-{{.Run.ID}}"]
- id: helm-deploy
cmd: chzbrgr71/helm-acr-task:1.2 upgrade --install flask-tf --set deploy.image={{.Run.Registry}}/chzbrgr71/edsheeran-flask-app,deploy.imageTag=build-{{.Run.ID}} ./chart
env:
- SP={{.Values.SP}}
- PASSWORD={{.Values.PASSWORD}}
- TENANT={{.Values.TENANT}}
- CLUSTER_RESOURCE_GROUP={{.Values.CLUSTER_RESOURCE_GROUP}}
- CLUSTER_NAME={{.Values.CLUSTER_NAME}}
- id: slack-notify
cmd: technosophos/slack-notify:latest
env:
- SLACK_WEBHOOK={{.Values.SLACK_WEBHOOK}}
- SLACK_CHANNEL="general"
- SLACK_USERNAME="Azure Container Registry Task"
- SLACK_MESSAGE="Latest Ed Sheeran Tensorflow model has been built and deployed. New image-> {{.Run.Registry}}/chzbrgr71/edsheeran-flask-app:build-{{.Run.ID}}"