Skip to content
This repository has been archived by the owner on Oct 18, 2024. It is now read-only.

Commit

Permalink
Build all dockerfiles.
Browse files Browse the repository at this point in the history
Signed-off-by: Masaki Muranaka <monaka@monami-ya.com>
  • Loading branch information
monaka committed Aug 18, 2019
1 parent 7b493cc commit 1c28763
Showing 1 changed file with 21 additions and 9 deletions.
30 changes: 21 additions & 9 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,21 @@ 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-endpoint-runtime
- script: |
for i in $(cd dockerfiles; find * -name 'remote-*' -type d -maxdepth 0) ; 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 Theia
- task: Docker@1
Expand All @@ -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)

0 comments on commit 1c28763

Please sign in to comment.