generated from bervProject/FeathersJS-Boilerplate
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
deploy.yml
26 lines (25 loc) · 863 Bytes
/
deploy.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
parameters:
- name: awsCredentials
displayName: AWS Credentials
type: string
default: "AWS-Dev-AssumeRole"
- name: region
displayName: AWS Region
type: string
default: "ap-southeast-1"
steps:
- task: ECRPushImage@1
displayName: "Push Image to ECR"
inputs:
awsCredentials: "${{ parameters.awsCredentials }}"
regionName: "${{ parameters.region }}"
sourceImageName: "spms"
sourceImageTag: "$(Build.BuildId)"
repositoryName: "spms"
pushTag: "$(Build.BuildId)"
- script: cd SimplePasswordManagerService.Infra && cdk deploy SimplePasswordManagerServiceInfraStack --parameters "imageTag=$(Build.BuildId)"
displayName: CDK Deploy
env:
AWS_ACCESS_KEY_ID: $(AWS_ACCESS_KEY_ID)
AWS_SECRET_ACCESS_KEY: $(AWS_SECRET_ACCESS_KEY)
AWS_DEFAULT_REGION: ${{ parameters.region }}