Skip to content

Commit

Permalink
ci: lock container images
Browse files Browse the repository at this point in the history
  • Loading branch information
deepak1556 committed Dec 5, 2023
1 parent 4ded39c commit 2fa5993
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 3 deletions.
15 changes: 13 additions & 2 deletions build/azure-pipelines/alpine/product-build-alpine.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
parameters:
- name: VSCODE_BUILD_ALPINE
type: boolean
default: false
- name: VSCODE_BUILD_ALPINE_ARM64
type: boolean
default: false

steps:
- task: NodeTool@0
inputs:
Expand Down Expand Up @@ -87,9 +95,12 @@ steps:
ELECTRON_SKIP_BINARY_DOWNLOAD: 1
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: 1
GITHUB_TOKEN: "$(github-distro-mixin-password)"
VSCODE_REMOTE_DEPENDENCIES_CONTAINER_NAME: vscodehub.azurecr.io/vscode-linux-build-agent:alpine-$(VSCODE_ARCH)
${{ if eq(parameters.VSCODE_BUILD_ALPINE_ARM64, true) }}:
VSCODE_REMOTE_DEPENDENCIES_CONTAINER_NAME: vscodehub.azurecr.io/vscode-linux-build-agent@sha256:9460a68ee75616af694fbfcb44705f3a9e2d2428d1c485cec69d574326db85a6
${{ if eq(parameters.VSCODE_BUILD_ALPINE, true) }}:
VSCODE_REMOTE_DEPENDENCIES_CONTAINER_NAME: vscodehub.azurecr.io/vscode-linux-build-agent@sha256:363166a7958f99ff581a62d94dec42217c16f1aed00e11875e30a59c178e52f9
VSCODE_HOST_MOUNT: "/mnt/vss/_work/1/s"
displayName: Install build dependencies
displayName: Install dependencies
condition: and(succeeded(), ne(variables.NODE_MODULES_RESTORED, 'true'))
- script: node build/azure-pipelines/distro/mixin-npm
Expand Down
6 changes: 5 additions & 1 deletion build/azure-pipelines/product-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ name: "$(Date:yyyyMMdd).$(Rev:r) (${{ parameters.VSCODE_QUALITY }})"
resources:
containers:
- container: snapcraft
image: vscodehub.azurecr.io/vscode-linux-build-agent:snapcraft-x64
image: vscodehub.azurecr.io/vscode-linux-build-agent@sha256:ab4a88c4d85e0d7a85acabba59543f7143f575bab2c0b2b07f5b77d4a7e491ff
endpoint: VSCodeHub
pipelines:
- pipeline: vscode-7pm-kick-off
Expand Down Expand Up @@ -461,6 +461,8 @@ stages:
NPM_ARCH: x64
steps:
- template: alpine/product-build-alpine.yml
parameters:
VSCODE_BUILD_ALPINE: ${{ parameters.VSCODE_BUILD_ALPINE }}

- ${{ if eq(parameters.VSCODE_BUILD_ALPINE_ARM64, true) }}:
- job: LinuxAlpineArm64
Expand All @@ -470,6 +472,8 @@ stages:
NPM_ARCH: arm64
steps:
- template: alpine/product-build-alpine.yml
parameters:
VSCODE_BUILD_ALPINE_ARM64: ${{ parameters.VSCODE_BUILD_ALPINE_ARM64 }}

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

0 comments on commit 2fa5993

Please sign in to comment.