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

Update build pipeline #786

Merged
merged 38 commits into from
Feb 26, 2019
Merged
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
dd12229
Merge pull request #1 from Microsoft/master
chicm-ms Nov 13, 2018
a67a6b8
Merge pull request #2 from Microsoft/master
chicm-ms Nov 16, 2018
75fd2f1
Merge pull request #3 from Microsoft/master
chicm-ms Nov 19, 2018
10e998f
Merge pull request #4 from Microsoft/master
chicm-ms Nov 27, 2018
a0f361c
Merge pull request #5 from Microsoft/master
chicm-ms Nov 27, 2018
76d7142
Merge pull request #6 from Microsoft/master
chicm-ms Nov 28, 2018
bc10bf7
Merge pull request #7 from Microsoft/master
chicm-ms Nov 29, 2018
d76deb3
Merge pull request #8 from Microsoft/master
chicm-ms Dec 4, 2018
5a28636
Merge pull request #10 from Microsoft/master
chicm-ms Dec 17, 2018
16f9cce
Merge pull request #11 from Microsoft/master
chicm-ms Dec 19, 2018
2f3bbaf
Merge pull request #12 from Microsoft/master
chicm-ms Dec 21, 2018
3973a74
Merge pull request #13 from Microsoft/master
chicm-ms Dec 21, 2018
4d07766
Merge pull request #14 from Microsoft/master
chicm-ms Dec 24, 2018
6d6cf1b
Merge pull request #15 from Microsoft/master
chicm-ms Dec 26, 2018
59585c2
Merge pull request #16 from Microsoft/master
chicm-ms Jan 2, 2019
dea9ba7
Merge pull request #17 from Microsoft/master
chicm-ms Jan 4, 2019
a4e0e12
Merge pull request #18 from Microsoft/master
chicm-ms Jan 9, 2019
a7202b6
Merge pull request #19 from Microsoft/master
chicm-ms Jan 11, 2019
94700c4
Merge pull request #20 from Microsoft/master
chicm-ms Jan 16, 2019
62fc165
Pull code (#22)
chicm-ms Jan 21, 2019
acc6c28
Revert "Pull code (#22)"
chicm-ms Jan 21, 2019
458967e
Merge pull request #23 from chicm-ms/revert-22-master
chicm-ms Jan 21, 2019
a90841a
Merge pull request #24 from Microsoft/master
chicm-ms Jan 21, 2019
15d83f7
Merge pull request #25 from Microsoft/master
chicm-ms Jan 22, 2019
d62228d
Merge pull request #26 from Microsoft/master
chicm-ms Jan 22, 2019
b307843
Merge pull request #27 from Microsoft/master
chicm-ms Jan 24, 2019
11d4d22
Merge pull request #28 from Microsoft/master
chicm-ms Jan 25, 2019
fa9d543
Merge pull request #29 from Microsoft/master
chicm-ms Feb 18, 2019
8b074b4
Merge pull request #30 from Microsoft/master
chicm-ms Feb 25, 2019
9ab9e54
Merge pull request #31 from Microsoft/master
chicm-ms Feb 25, 2019
6dcbf53
Merge pull request #32 from Microsoft/master
chicm-ms Feb 26, 2019
53ca7e7
update docker build pipeline
chicm-ms Feb 26, 2019
01a1c17
updates
chicm-ms Feb 26, 2019
812c1b6
updates
chicm-ms Feb 26, 2019
34e649d
updates
chicm-ms Feb 26, 2019
a2b609a
updates
chicm-ms Feb 26, 2019
ec93597
updates
chicm-ms Feb 26, 2019
5b27d8c
updates
chicm-ms Feb 26, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 24 additions & 8 deletions deployment/deployment-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
echo 'building release package...'
make build
fi

condition: eq( variables['upload_package'], 'true' )
displayName: 'build nni bdsit_wheel'
- script: |
cd deployment/pypi
Expand All @@ -38,21 +38,36 @@ jobs:
echo 'uploading release package to pypi...'
python3 -m twine upload -u $(pypi_user) -p $(pypi_pwd) dist/*
fi
condition: eq( variables['upload_package'], 'true' )
displayName: 'upload nni package to pypi/testpypi'

- script: |
export IMG_TAG=`git describe --tags --abbrev=0`
cd deployment/docker
docker login -u $(docker_hub_user) -p $(docker_hub_pwd)

if [ $(build_type) = 'prerelease' ]
then
docker login -u $(docker_hub_dev_user) -p $(docker_hub_dev_pwd)
export IMG_NAME=$(dev_docker_img)
export IMG_TAG=`git describe --tags --abbrev=0`.`date +%y%m%d%H%M`
echo 'updating docker file for testpyi...'
sed -ie 's/RUN python3 -m pip --no-cache-dir install nni/RUN python3 -m pip install --user --no-cache-dir --index-url https:\/\/test.pypi.org\/simple\/ --extra-index-url https:\/\/pypi.org\/simple nni/' Dockerfile
sed -ie 's/RUN python3 -m pip --no-cache-dir install nni/RUN python3 -m pip install --user --no-cache-dir --index-url https:\/\/test.pypi.org\/simple --extra-index-url https:\/\/pypi.org\/simple nni/' Dockerfile
else
docker login -u $(docker_hub_user) -p $(docker_hub_pwd)
export IMG_NAME=msranni/nni
export IMG_TAG=`git describe --tags --abbrev=0`
fi
echo $IMG_TAG
docker build -f Dockerfile -t msranni/nni:$IMG_TAG .
docker push msranni/nni:$IMG_TAG
echo $IMG_NAME:$IMG_TAG
cat Dockerfile
docker build -f Dockerfile -t $IMG_NAME:$IMG_TAG .
docker push $IMG_NAME:$IMG_TAG

if [ $(update_latest_tag) = 'true' ]
then
docker tag $IMG_NAME:$IMG_TAG $IMG_NAME:latest
docker push $IMG_NAME:latest
fi

condition: eq( variables['build_docker_img'], 'true' )
displayName: 'build and upload nni docker image'

- job: 'Build_upload_nni_macos'
Expand Down Expand Up @@ -83,7 +98,7 @@ jobs:
echo 'building release package...'
PATH=$HOME/Library/Python/3.7/bin:$PATH make build
fi

condition: eq( variables['upload_package'], 'true' )
displayName: 'build nni bdsit_wheel'
- script: |
cd deployment/pypi
Expand All @@ -95,4 +110,5 @@ jobs:
echo 'uploading release package to pypi...'
python3 -m twine upload -u $(pypi_user) -p $(pypi_pwd) dist/*
fi
condition: eq( variables['upload_package'], 'true' )
displayName: 'upload nni package to pypi/testpypi'