Skip to content

Commit f724f4c

Browse files
committed
Added latest tag
1 parent df9ae6c commit f724f4c

File tree

1 file changed

+18
-17
lines changed

1 file changed

+18
-17
lines changed

.gitlab-ci.yml

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ image: python:3.10
22

33
variables:
44
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
66

77
cache:
88
paths:
@@ -11,7 +11,7 @@ cache:
1111
stages:
1212
- build_docs
1313
- build_docker
14-
- publish
14+
# - publish
1515

1616
build_docs:
1717
stage: build_docs
@@ -77,19 +77,20 @@ build_docker:
7777
COPY docs /usr/share/nginx/html/python
7878
COPY nginx.conf /etc/nginx/nginx.conf
7979
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
8283

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/*

0 commit comments

Comments
 (0)