From b0175216087cffead80853d3086fef4c3d74769a Mon Sep 17 00:00:00 2001 From: Michael Pivato Date: Mon, 31 Aug 2020 02:51:46 +0000 Subject: [PATCH] Update .gitlab-ci.yml to support pypi dist --- .gitlab-ci.yml | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 1de603f..dadb650 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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