Update .gitlab-ci.yml to support pypi dist

This commit is contained in:
Michael Pivato
2020-08-31 02:51:46 +00:00
parent 622ed0911e
commit b017521608

View File

@@ -3,7 +3,7 @@ stages:
- deploy
build_pycar:
image: vato.ddns.net:8083/python:3
image: vato.ddns.net:8083/python-infra:buster
stage: build
script:
- cd pycar && python setup.py bdist_wheel && cd ..
@@ -16,6 +16,15 @@ build_pycar_docker:
- docker build -f pycar/Dockerfile --build-arg PYPI_USERNAME=${PYPI_USERNAME} --build-arg PYPI_PASSWORD=${PYPI_PASSWORD} -t vato.ddns.net:8082/pycar:latest pycar
deploy_pycar:
image: vato.ddns.net:8083/python-infra:buster
needs:
- build_pycar
script:
- cd pycar && python -m twine upload -u $TWINE_COMMON_CREDS_USR -p $TWINE_COMMON_CREDS_PSW dist/* && cd ..
only:
- tags
deploy_pycar_docker:
image: vato.ddns.net:8083/docker
stage: deploy
script:
@@ -25,3 +34,8 @@ deploy_pycar:
- build_pycar_docker
only:
- tags
deploy_pycar_docker_arm:
extends: deploy_pycar_docker
tags:
- docker-arm