forked from eclipse-che/che-theia
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
64 lines (52 loc) · 1.82 KB
/
azure-pipelines.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# Maven
# Build your Java project and run tests with Apache Maven.
# Add steps that analyze code, save build artifacts, deploy, and more:
# https://docs.microsoft.com/azure/devops/pipelines/languages/java
trigger:
- master-optemi
variables:
- group: che-theia
- name: organization
value: opentestmodeling
- name: prefix
value: optemi
- name: tag
value: next
pool:
vmImage: 'Ubuntu-18.04'
jobs:
- job: Build
timeoutInMinutes: 0
steps:
- task: NodeTool@0
inputs:
versionSpec: '10.16.3'
- script: yarn policies set-version 1.21.1
- script: npm install -g node-gyp && npx node-gyp install && yarn
displayName: Run yarn.
- job: ContainerBuild
steps:
- task: NodeTool@0
inputs:
versionSpec: '10.16.3'
- script: yarn policies set-version 1.21.1
- script: yarn install
- script: |
cd dockerfiles/theia-dev
./build.sh --build-arg:GITHUB_TOKEN=$(github_token) --organization:$(organization) --tag:$(tag) --branch:v0.11.0 --prefix:$(prefix)
displayName: Building theia-dev
- script: |
cd dockerfiles/theia
./build.sh --build-args:GITHUB_TOKEN=$(github_token),THEIA_VERSION=v0.11.0 --tag:$(tag) --prefix:$(prefix) --branch:v0.11.0 --organization:$(organization) --skip-tests
displayName: Building Theia
- task: Docker@1
displayName: Container registry login
inputs:
command: login
dockerRegistryEndpoint: dockerhub-monaka
containerRegistryType: Container Registry
- script: |
docker push $(organization)/$(prefix)-theia-dev:$(tag)
docker push $(organization)/$(prefix)-theia:$(tag)
condition: and(succeeded(), ne(variables['Build.Reason'], 'PullRequest'))
displayName: Pushing