From 5e3945aa5c48121ae2e425ade9d0013a25b57686 Mon Sep 17 00:00:00 2001 From: Masaki Muranaka Date: Sun, 18 Aug 2019 17:06:32 +0900 Subject: [PATCH] Build all dockerfiles. Signed-off-by: Masaki Muranaka --- azure-pipelines.yml | 32 ++++++++++++++++++++++---------- 1 file changed, 22 insertions(+), 10 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 1f07af9f3..1711239b0 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -31,10 +31,22 @@ jobs: ./build.sh --build-arg:GITHUB_TOKEN=$(github_token) --organization:$(organization) --tag:$(tag) --prefix:$(prefix) displayName: Building theia-dev +# - script: | +# cd dockerfiles/theia +# ./build.sh --build-args:GITHUB_TOKEN=$(github_token),THEIA_VERSION=master --tag:$(tag) --prefix:$(prefix) --branch:master --git-ref:refs\\/heads\\/master --organization:$(organization) +# displayName: Building Theia + - script: | - cd dockerfiles/theia + cd dockerfiles/theia-endpoint-runtime ./build.sh --build-args:GITHUB_TOKEN=$(github_token),THEIA_VERSION=master --tag:$(tag) --prefix:$(prefix) --branch:master --git-ref:refs\\/heads\\/master --organization:$(organization) - displayName: Building Theia + displayName: Building Theia-endpoint-runtime + + - script: | + for i in $(find dockerfiles -maxdepth 1 -type d -name 'remote-*'); do + (cd $i; + ./build.sh --build-args:GITHUB_TOKEN=$(github_token),THEIA_VERSION=master --tag:$(tag) --prefix:$(prefix) --branch:master --git-ref:refs\\/heads\\/master --organization:$(organization) ) + done + displayName: Building remote-* containers - task: Docker@1 displayName: Container registry login @@ -44,17 +56,17 @@ jobs: containerRegistryType: Container Registry - script: | - docker tag $(organization)/che-theia-dev:$(tag) camino.azurecr.io/$(organization)/che-theia-dev:$(tag) - docker tag $(organization)/che-theia:$(tag) camino.azurecr.io/$(organization)/che-theia:$(tag) - docker push camino.azurecr.io/$(organization)/che-theia-dev:$(tag) - docker push camino.azurecr.io/$(organization)/che-theia:$(tag) + for i in $(cd dockerfiles; find * -type d -maxdepth 0); do + docker tag $(organization)/$i:$(tag) camino.azurecr.io/$(organization)/$i:$(tag) + docker push camino.azurecr.io/$(organization)/$i:$(tag) + done condition: and(succeeded(), ne(variables['Build.Reason'], 'PullRequest')) displayName: Pushing - script: | - docker tag $(organization)/che-theia-dev:$(tag) camino.azurecr.io/$(organization)/che-theia-dev:$(tag)-pr$(System.PullRequest.PullRequestNumber) - docker tag $(organization)/che-theia:$(tag) camino.azurecr.io/$(organization)/che-theia:$(tag)-pr$(System.PullRequest.PullRequestNumber) - docker push camino.azurecr.io/$(organization)/che-theia-dev:$(tag)-pr$(System.PullRequest.PullRequestNumber) - docker push camino.azurecr.io/$(organization)/che-theia:$(tag)-pr$(System.PullRequest.PullRequestNumber) + for i in $(cd dockerfiles; find * -type d -maxdepth 0); do + docker tag $(organization)/$i:$(tag) camino.azurecr.io/$(organization)/$i:$(tag)-pr$(System.PullRequest.PullRequestNumber) + docker push camino.azurecr.io/$(organization)/$i:$(tag)-pr$(System.PullRequest.PullRequestNumber) + done condition: and(succeeded(), eq(variables['Build.Reason'], 'PullRequest')) displayName: Pushing (staging)