You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# - (Required) containerPath [string]: the full path to the container to be used for the build environmentr (Example. osconfig.azurecr.io/ubuntu20.04-dev-amd64:latest)
4
+
# - (Optional) prefix [string]: the prefix for the stage/job to be used - default: source
5
+
# - (Optional) publishArtifact [boolean]: publishes the built artifacts (packages) as pipeline artifacts - default: true
6
+
7
+
parameters:
8
+
- name: prefix
9
+
type: string
10
+
default: source
11
+
12
+
- name: containerPath
13
+
type: string
14
+
15
+
- name: publishArtifact
16
+
type: boolean
17
+
default: false
18
+
19
+
stages:
20
+
- stage: source_build
21
+
displayName: Source
22
+
dependsOn: []
23
+
24
+
jobs:
25
+
- job: ${{ parameters.prefix }}
26
+
27
+
pool:
28
+
vmImage: 'ubuntu-20.04'
29
+
30
+
steps:
31
+
32
+
- checkout: self
33
+
submodules: recursive
34
+
clean: true
35
+
36
+
- task: Docker@2
37
+
displayName: Login to ACR
38
+
inputs:
39
+
command: login
40
+
containerRegistry: $(SERVICE_CONNECTION)
41
+
42
+
- script: |
43
+
CONTAINER_ID=`docker run -di -v $(Build.SourcesDirectory):/AzOsConfig ${{ parameters.containerPath }}`
0 commit comments