diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index f225b6b..1b9fbf5 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -2,7 +2,7 @@ image: python:3.10 variables: PIP_CACHE_DIR: "$CI_PROJECT_DIR/.pip-cache" - DOCS_IMAGE: $CI_REGISTRY_IMAGE/docs:$CI_COMMIT_TAG + DOCS_IMAGE: $CI_REGISTRY_IMAGE/docs cache: paths: @@ -11,7 +11,7 @@ cache: stages: - build_docs - build_docker - - publish + # - publish build_docs: stage: build_docs @@ -77,19 +77,20 @@ build_docker: COPY docs /usr/share/nginx/html/python COPY nginx.conf /etc/nginx/nginx.conf EOF - - docker build --pull -t $DOCS_IMAGE . - - docker push $DOCS_IMAGE + - docker build --pull -t $DOCS_IMAGE:$CI_COMMIT_TAG -t $DOCS_IMAGE:latest . + - docker push $DOCS_IMAGE:$CI_COMMIT_TAG + - docker push $DOCS_IMAGE:latest -publish: - stage: publish - only: - - tags - script: - - pip install --upgrade pip - - pip install build wheel - - python -m build --sdist --wheel --outdir dist/ . - - pip install twine - - TWINE_PASSWORD=${PYPI_API_TOKEN} TWINE_USERNAME=__token__ python -m twine upload dist/* - artifacts: - paths: - - dist/* +# publish: +# stage: publish +# only: +# - tags +# script: +# - pip install --upgrade pip +# - pip install build wheel +# - python -m build --sdist --wheel --outdir dist/ . +# - pip install twine +# - TWINE_PASSWORD=${PYPI_API_TOKEN} TWINE_USERNAME=__token__ python -m twine upload dist/* +# artifacts: +# paths: +# - dist/*