diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index abf0dd9692bd502c5ff0f3a15a900c4e60dd4600..6cd80790b7a0737957722e601dc3aead5ce7f5cc 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -4,6 +4,7 @@ stages: - deploy_test - test_install - deploy_prod + - prod_install test_docker: stage: test @@ -48,12 +49,9 @@ install-from-testpypi: - apt-get install -y libeccodes-dev - apt install -yq git vim python3 python3-pip python3-venv script: - - pip install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple/ enstools-compression + - pip install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple/ enstools-compression --break-system-packages - python -c "from enstools.compression import api" - artifacts: - when: on_failure - paths: - - "*.log" + deploy-to-pypi: stage: deploy_prod @@ -66,4 +64,23 @@ deploy-to-pypi: script: - pip install twine - python setup.py sdist bdist_wheel - - twine upload -u "__token__" -p "$PYPI_PASSWORD" --skip-existing dist/* \ No newline at end of file + - twine upload -u "__token__" -p "$PYPI_PASSWORD" --skip-existing dist/* + +install-from-pypi: + stage: prod_install + image: ubuntu:rolling + tags: + - docker.meteo.physik.lmu.de + only: + - tags + needs: ["deploy-to-pypi"] + before_script: + - apt update + - export DEBIAN_FRONTEND=noninteractive + - apt-get install -y libproj-dev proj-data proj-bin + - apt-get install -y libgeos-dev + - apt-get install -y libeccodes-dev + - apt install -yq git vim python3 python3-pip python3-venv + script: + - pip install enstools-compression --break-system-packages + - python -c "from enstools.compression import api"