diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000000000000000000000000000000000000..04a9692df58726d548299ee901c3db7f88a25451 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,27 @@ +image: python:3.8-alpine + +stages: + - upload + +.upload: + stage: upload + variables: + PYPI_PASSWORD: $PYPI_PASSWORD + script: + - apk add bash make gcc g++ linux-headers musl-dev + - make release + - echo "Job \"$CI_JOB_STAGE\" was successful!" + +upload-develop: + extends: .upload + variables: + PYPI_REPO: https://pypi.perx.ru/root/develop + only: + - master + +upload-production: + extends: .upload + variables: + PYPI_REPO: https://pypi.perx.ru/root/master + only: + - tags