Files
picar/.gitlab-ci.yml
2020-08-25 22:25:20 +09:30

27 lines
697 B
YAML

stages:
- build
- deploy
build_pycar:
image: vato.ddns.net:8083/python:3
stage: build
script:
- cd pycar && python setup.py bdist_wheel && cd ..
build_pycar_docker:
image: vato.ddns.net:8083/docker
stage: build
script:
- echo ${DOCKER_PASSWORD} | docker login vato.ddns.net:8083 --username ${DOCKER_USERNAME} --password-stdin
- docker build -f pycar/Dockerfile --build-arg PYPI_USERNAME=${PYPI_USERNAME} --build-arg PYPI_PASSWORD=${PYPI_PASSWORD} -t vato.ddns.net:8083/pycar:latest pycar
deploy_pycar:
image: vato.ddns.net:8083/docker
stage: deploy
script:
- docker push vato.ddns.net:8083/pycar:latest
needs:
- build_pycar_docker
only:
- tags