Skip to content

Commit c46c2f1

Browse files
authored
ci: lock container images (microsoft#200008)
1 parent 4ded39c commit c46c2f1

File tree

2 files changed

+18
-3
lines changed

2 files changed

+18
-3
lines changed

build/azure-pipelines/alpine/product-build-alpine.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
parameters:
2+
- name: VSCODE_BUILD_ALPINE
3+
type: boolean
4+
default: false
5+
- name: VSCODE_BUILD_ALPINE_ARM64
6+
type: boolean
7+
default: false
8+
19
steps:
210
- task: NodeTool@0
311
inputs:
@@ -87,9 +95,12 @@ steps:
8795
ELECTRON_SKIP_BINARY_DOWNLOAD: 1
8896
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: 1
8997
GITHUB_TOKEN: "$(github-distro-mixin-password)"
90-
VSCODE_REMOTE_DEPENDENCIES_CONTAINER_NAME: vscodehub.azurecr.io/vscode-linux-build-agent:alpine-$(VSCODE_ARCH)
98+
${{ if eq(parameters.VSCODE_BUILD_ALPINE_ARM64, true) }}:
99+
VSCODE_REMOTE_DEPENDENCIES_CONTAINER_NAME: vscodehub.azurecr.io/vscode-linux-build-agent@sha256:9460a68ee75616af694fbfcb44705f3a9e2d2428d1c485cec69d574326db85a6
100+
${{ if eq(parameters.VSCODE_BUILD_ALPINE, true) }}:
101+
VSCODE_REMOTE_DEPENDENCIES_CONTAINER_NAME: vscodehub.azurecr.io/vscode-linux-build-agent@sha256:363166a7958f99ff581a62d94dec42217c16f1aed00e11875e30a59c178e52f9
91102
VSCODE_HOST_MOUNT: "/mnt/vss/_work/1/s"
92-
displayName: Install build dependencies
103+
displayName: Install dependencies
93104
condition: and(succeeded(), ne(variables.NODE_MODULES_RESTORED, 'true'))
94105
95106
- script: node build/azure-pipelines/distro/mixin-npm

build/azure-pipelines/product-build.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ name: "$(Date:yyyyMMdd).$(Rev:r) (${{ parameters.VSCODE_QUALITY }})"
146146
resources:
147147
containers:
148148
- container: snapcraft
149-
image: vscodehub.azurecr.io/vscode-linux-build-agent:snapcraft-x64
149+
image: vscodehub.azurecr.io/vscode-linux-build-agent@sha256:ab4a88c4d85e0d7a85acabba59543f7143f575bab2c0b2b07f5b77d4a7e491ff
150150
endpoint: VSCodeHub
151151
pipelines:
152152
- pipeline: vscode-7pm-kick-off
@@ -461,6 +461,8 @@ stages:
461461
NPM_ARCH: x64
462462
steps:
463463
- template: alpine/product-build-alpine.yml
464+
parameters:
465+
VSCODE_BUILD_ALPINE: ${{ parameters.VSCODE_BUILD_ALPINE }}
464466

465467
- ${{ if eq(parameters.VSCODE_BUILD_ALPINE_ARM64, true) }}:
466468
- job: LinuxAlpineArm64
@@ -470,6 +472,8 @@ stages:
470472
NPM_ARCH: arm64
471473
steps:
472474
- template: alpine/product-build-alpine.yml
475+
parameters:
476+
VSCODE_BUILD_ALPINE_ARM64: ${{ parameters.VSCODE_BUILD_ALPINE_ARM64 }}
473477

474478
- ${{ if and(eq(parameters.VSCODE_COMPILE_ONLY, false), eq(variables['VSCODE_BUILD_STAGE_MACOS'], true)) }}:
475479
- stage: macOS

0 commit comments

Comments
 (0)