Skip to content
This repository was archived by the owner on Feb 13, 2025. It is now read-only.

Commit b3a3f7e

Browse files
authored
Make scan wait until after approval (#98)
* add devcontainer * remove docker in docker * Move scan after approval * read pool name from variable group * update approval instructions
1 parent 32500b4 commit b3a3f7e

File tree

4 files changed

+25
-9
lines changed

4 files changed

+25
-9
lines changed

.devcontainer/devcontainer.json

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"image": "mcr.microsoft.com/powershell/test-deps:ubuntu-22.04",
3+
"features": {
4+
"ghcr.io/devcontainers/features/github-cli:1": {},
5+
"ghcr.io/devcontainers/features/common-utils:2": {}
6+
},
7+
"customizations": {
8+
"codespaces": {
9+
}
10+
}
11+
}

.vsts-ci/releaseBuild.yml

+1
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ variables:
3232
value: 1
3333
- name: runCodesignValidationInjection
3434
value: false
35+
- group: poolNames
3536

3637
stages:
3738
- template: ./templates/releaseBuildAndPushStage.yml

.vsts-ci/templates/pushPhase.yml

+12-8
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,21 @@ parameters:
77
default: 'private'
88

99
jobs:
10+
- template: ./Approval.yml
11+
parameters:
12+
displayName: 'Approve ${{ parameters.channel }}-${{ parameters.release }} upload'
13+
instructions: |
14+
Only approve one channel at a time or malware scanning will fail.
15+
Approving this will trigger the upload of the snap as "${{ parameters.channel }}-${{ parameters.release }}"
16+
jobName: 'push_approval'
17+
1018
- job: scan
1119
displayName: Scan ${{ parameters.channel }}
20+
dependsOn:
21+
- push_approval
1222

1323
pool:
14-
name: 1es
24+
name: $(ubuntuPool)
1525
demands:
1626
- ImageOverride -equals ${{ parameters.vmImage }}
1727

@@ -72,12 +82,6 @@ jobs:
7282
**/*
7383
scanningService: 'pwshEsrpScanning'
7484

75-
- template: ./Approval.yml
76-
parameters:
77-
displayName: 'Approve ${{ parameters.channel }}-${{ parameters.release }} upload'
78-
instructions: 'Approving this will trigger the upload of the snap as "${{ parameters.channel }}-${{ parameters.release }}"'
79-
jobName: 'push_approval'
80-
8185
- job: push
8286
dependsOn:
8387
- push_approval
@@ -86,7 +90,7 @@ jobs:
8690
displayName: Push to ${{ parameters.release }}
8791

8892
pool:
89-
name: 1es
93+
name: $(ubuntuPool)
9094
demands:
9195
- ImageOverride -equals ${{ parameters.vmImage }}
9296

.vsts-ci/templates/releaseBuildPhase.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616

1717
${{ if startsWith(parameters.vmImage, 'PSMMS') }}:
1818
pool:
19-
name: 1es
19+
name: $(ubuntuPool)
2020
demands:
2121
- ImageOverride -equals ${{ parameters.vmImage }}
2222

0 commit comments

Comments
 (0)