|
53 | 53 | pip install pyinstaller |
54 | 54 | pyinstaller --onefile ./croudtech_bootstrap_app/croudtech-bootstrap.py --clean |
55 | 55 | cp ./dist/croudtech-bootstrap $(Build.ArtifactStagingDirectory)/croudtech-bootstrap |
56 | | - - job: BuildImage |
57 | | - displayName: Build Image |
58 | | - condition: and(succeeded(), in(variables['Build.SourceBranchName'], 'integration', |
59 | | - 'master', 'main')) |
60 | | - steps: |
61 | | - - task: UpdateBuildNumber@0 |
62 | | - inputs: |
63 | | - buildNumber: $(Build.SourceBranchName)_$(Build.BuildNumber) |
64 | | - - task: NodeTool@0 |
65 | | - inputs: |
66 | | - versionSource: 'spec' |
67 | | - versionSpec: '18.14.x' |
68 | | - - task: Yarn@2 |
69 | | - inputs: |
70 | | - ProjectDirectory: './cdk' |
71 | | - - task: AWSShellScript@1 |
72 | | - displayName: Integration Build |
73 | | - condition: and(succeeded(), in(variables['Build.SourceBranchName'], 'integration')) |
74 | | - inputs: |
75 | | - awsCredentials: 'AWS_Development' |
76 | | - regionName: 'eu-west-2' |
77 | | - scriptType: 'inline' |
78 | | - disableAutoCwd: true |
79 | | - workingDirectory: './cdk' |
80 | | - inlineScript: | |
81 | | - ENVIRONMENT=Shared npx cdk deploy InitStack |
82 | | - export SEMVER=$(Build.BuildNumber) |
83 | | - export ENVIRONMENT=Integration |
84 | | - export PIPELINE_TYPE=build |
85 | | - npx cdk deploy BuildStack --require-approval=never |
86 | | - - task: AWSShellScript@1 |
87 | | - displayName: Production / Prelive Build (replicates to production ECR repo) |
88 | | - condition: and(succeeded(), in(variables['Build.SourceBranchName'], 'master', 'main')) |
89 | | - inputs: |
90 | | - awsCredentials: 'AWS_Development' |
91 | | - regionName: 'eu-west-2' |
92 | | - scriptType: 'inline' |
93 | | - disableAutoCwd: true |
94 | | - workingDirectory: './cdk' |
95 | | - inlineScript: | |
96 | | - ENVIRONMENT=Shared npx cdk deploy InitStack |
97 | | - export SEMVER=$(Build.BuildNumber) |
98 | | - export ENVIRONMENT=Prelive |
99 | | - export PIPELINE_TYPE=build |
100 | | - npx cdk deploy BuildStack --require-approval=never |
101 | 56 | - job: GithubRelease |
102 | 57 | dependsOn: build |
103 | 58 | displayName: GithubRelease |
|
0 commit comments