File tree Expand file tree Collapse file tree 1 file changed +18
-17
lines changed Expand file tree Collapse file tree 1 file changed +18
-17
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ image: python:3.10
2
2
3
3
variables :
4
4
PIP_CACHE_DIR : " $CI_PROJECT_DIR/.pip-cache"
5
- DOCS_IMAGE : $CI_REGISTRY_IMAGE/docs:$CI_COMMIT_TAG
5
+ DOCS_IMAGE : $CI_REGISTRY_IMAGE/docs
6
6
7
7
cache :
8
8
paths :
11
11
stages :
12
12
- build_docs
13
13
- build_docker
14
- - publish
14
+ # - publish
15
15
16
16
build_docs :
17
17
stage : build_docs
@@ -77,19 +77,20 @@ build_docker:
77
77
COPY docs /usr/share/nginx/html/python
78
78
COPY nginx.conf /etc/nginx/nginx.conf
79
79
EOF
80
- - docker build --pull -t $DOCS_IMAGE .
81
- - docker push $DOCS_IMAGE
80
+ - docker build --pull -t $DOCS_IMAGE:$CI_COMMIT_TAG -t $DOCS_IMAGE:latest .
81
+ - docker push $DOCS_IMAGE:$CI_COMMIT_TAG
82
+ - docker push $DOCS_IMAGE:latest
82
83
83
- publish :
84
- stage : publish
85
- only :
86
- - tags
87
- script :
88
- - pip install --upgrade pip
89
- - pip install build wheel
90
- - python -m build --sdist --wheel --outdir dist/ .
91
- - pip install twine
92
- - TWINE_PASSWORD=${PYPI_API_TOKEN} TWINE_USERNAME=__token__ python -m twine upload dist/*
93
- artifacts :
94
- paths :
95
- - dist/*
84
+ # publish:
85
+ # stage: publish
86
+ # only:
87
+ # - tags
88
+ # script:
89
+ # - pip install --upgrade pip
90
+ # - pip install build wheel
91
+ # - python -m build --sdist --wheel --outdir dist/ .
92
+ # - pip install twine
93
+ # - TWINE_PASSWORD=${PYPI_API_TOKEN} TWINE_USERNAME=__token__ python -m twine upload dist/*
94
+ # artifacts:
95
+ # paths:
96
+ # - dist/*
You can’t perform that action at this time.
0 commit comments