Commit 87fa4980 authored by Luc Yriarte's avatar Luc Yriarte
Browse files

Merge branch 'deploy_dev' into 'master'

Development packages support

See merge request !7
parents 2f6b4444 880f5c37
Pipeline #32009 passed with stage
in 2 minutes and 6 seconds
......@@ -36,3 +36,24 @@ deploylib:
- TWINE_PASSWORD=${CI_JOB_TOKEN} TWINE_USERNAME=${CI_REGISTRY_USER} python -m twine upload --repository-url ${CI_API_V4_URL}/projects/${WDMS_LIB_REGISTRY}/packages/pypi dist/*
rules:
- if: $CI_COMMIT_BRANCH == 'master'
# Pushes merge request builds to the feed
deploydev:
stage: deploy
script:
- echo ---- ---- ---- SET DEVELOPMENT VERSION ---- ---- ----
- PACKAGE_VERSION_FILE='osdu_az/__init__.py'
- PACKAGE_NAME=$(python setup.py --name)
- PACKAGE_LIB_VERSION=$(python setup.py --version)
- PACKAGE_DEV_VERSION=${PACKAGE_LIB_VERSION}.dev${CI_JOB_ID}
- sed -i "s/${PACKAGE_LIB_VERSION}/${PACKAGE_DEV_VERSION}/g" ${PACKAGE_VERSION_FILE}
- echo ---- ---- ---- BUILD IMAGE ---- ---- ----
- pip3 install -r requirements.txt
- pip3 install -r requirements_opengroup.txt
- pip3 install twine
- python3 setup.py sdist bdist_wheel
- echo ---- ---- ---- PUSHING DEVELOPMENT PACKAGE ${PACKAGE_DEV_VERSION} TO PROJECT ${WDMS_LIB_REGISTRY} REGISTRY ---- ---- ----
- TWINE_PASSWORD=${CI_JOB_TOKEN} TWINE_USERNAME=${CI_REGISTRY_USER} python -m twine upload --repository-url ${CI_API_V4_URL}/projects/${WDMS_LIB_REGISTRY}/packages/pypi dist/*
only:
- merge_requests
# osdu core lib main python
--extra-index-url \
https://community.opengroup.org/api/v4/projects/223/packages/pypi/simple/
https://community.opengroup.org/api/v4/projects/465/packages/pypi/simple/
osdu-core-lib-python>=0.4.0, <0.5
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment