Skip to content
Snippets Groups Projects
Commit f698a15a authored by Matthias Stefan Bodenbenner's avatar Matthias Stefan Bodenbenner
Browse files

updated CI/CD pipeline

parent ba8fa4b5
Branches
Tags
No related merge requests found
Pipeline #77681 failed
stages:
- build
- push
# - deploy
- deploy
#Build Wheel:
# image: python:3.9
# tags:
# - frodo
# stage: build
# artifacts:
# paths:
# - dist/*
# only:
# - master
# - legacy
# script:
# - pip install -r requirements.txt
# - python setup.py sdist bdist_wheel
Build Wheel:
image: python:3.9
tags:
- frodo
stage: build
artifacts:
paths:
- dist/*
only:
- master
- legacy
script:
- pip install -r requirements.txt
- python setup.py sdist bdist_wheel
#
#Push Wheel to Package Registry:
# image: python:3.9
# tags:
# - frodo
# stage: push
# artifacts:
# paths:
# - dist/*
# only:
# - master
# script:
# - pip install twine
# - python -m twine upload -u gitlab-ci-token -p $CI_JOB_TOKEN --verbose --repository-url https://git-ce.rwth-aachen.de/api/v4/projects/${CI_PROJECT_ID}/packages/pypi dist/*
Push Wheel to Package Registry:
image: python:3.9
tags:
- frodo
stage: push
artifacts:
paths:
- dist/*
only:
- master
script:
- pip install twine
- python -m twine upload -u gitlab-ci-token -p $CI_JOB_TOKEN --verbose --repository-url https://git-ce.rwth-aachen.de/api/v4/projects/${CI_PROJECT_ID}/packages/pypi dist/*
Build Documentation:
image: docker:20.10
stage: build
only:
- master
tags:
- frodo
stage: build
script:
- cd doc
- echo $CI_REGISTRY
- docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
- docker build -t registry.git-ce.rwth-aachen.de/wzl-mq-ms/forschung-lehre/digital-mars/mqtt .
Push Documentation:
image: docker:20.10
stage: push
only:
- master
tags:
- frodo
script:
- docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
- docker push registry.git-ce.rwth-aachen.de/wzl-mq-ms/forschung-lehre/digital-mars/mqtt:latest
#Push Image to Container Registry:
# image: docker:20.10
# tags:
# - frodo
# stage: push
# only:
# - master
# script:
# - docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
# - docker push registry.git-ce.rwth-aachen.de/wzl-mq-ms/forschung-lehre/digital-mars/mqtt
# - docker tag registry.git-ce.rwth-aachen.de/wzl-mq-ms/docker-ros/ur-ros:latest
# - docker push registry.git-ce.rwth-aachen.de/wzl-mq-ms/docker-ros/ur-ros:latest
#
#Pages:
# image: python:3.8
# only:
# - master
# stage: build
# script:
# - pip install -r requirements.txt
# # - pip install .
# - cd doc
# - make html
# - mv build/html/ ../public/
#
# tags: [frodo]
# artifacts:
# paths:
# - public
Deploy Documentation:
stage: deploy
only:
- master
tags:
- sam
needs: ["Push Documentation"]
script:
- ls
- docker-compose stop documentation-main
- docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
- docker-compose up -d
\ No newline at end of file
......@@ -74,7 +74,7 @@ To obtain credentials for MQTT-Broker of WZL-MQ-MS contact [Mark Sanders](mailto
## Documentation
For more detailed explanation and full API documentation, view [https://visionlab.wzl.rwth-aachen.de/doc/mqtt/](https://visionlab.wzl.rwth-aachen.de/doc/mqtt/)
For more detailed explanation and full API documentation, view [https://iot.wzl-mq.rwth-aachen.de/documentation/libs/mqtt/](https://iot.wzl-mq.rwth-aachen.de/documentation/libs/mqtt/)
## Changelog
2.3.0
......
server {
listen 80;
listen [::]:80;
server_name iot.wzl-mq.rwth-aachen.de;
location /documentation/libs/mqtt {
alias /usr/share/nginx/html;
index index.html index.htm;
}
}
\ No newline at end of file
version: '3'
services:
mqtt-documenation:
image: registry.git-ce.rwth-aachen.de/wzl-mq-ms/forschung-lehre/digital-mars/mqtt:latest
container_name: documentation-mqtt
networks:
- documentation-network
volumes:
- ./default.conf:/etc/nginx/conf.d/default.conf
ports:
- 9010:80
restart: unless-stopped
networks:
documentation-network:
external: true
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment