Commit 705bcc1f authored by Luc Yriarte's avatar Luc Yriarte
Browse files

Rework states

parent 9751ef4a
Pipeline #33388 passed with stage
in 33 seconds
......@@ -8,9 +8,9 @@ include:
stages:
- test
- deploy
- package
build:
unit-tests:
stage: test
script:
- apt -y update
......@@ -32,8 +32,8 @@ build:
junit: report.xml
# This job only runs on master, and it creates the lib and push it to the feed
deploylib:
stage: deploy
deploy-lib:
stage: package
script:
- echo ---- ---- ---- BUILD IMAGE ---- ---- ----
- pip3 install -r requirements.txt
......@@ -45,8 +45,8 @@ deploylib:
- if: $CI_COMMIT_BRANCH == 'master'
# Pushes merge request builds to the feed
deploydev:
stage: deploy
deploy-dev:
stage: package
script:
- echo ---- ---- ---- SET DEVELOPMENT VERSION ---- ---- ----
- PACKAGE_VERSION_FILE='osdu_az/__init__.py'
......@@ -61,5 +61,6 @@ deploydev:
- 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/*
rules:
- when: merge_requests
only:
- merge_requests
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