Show pageOld revisionsBacklinksBack to top This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. ====== Gitlab ====== ===== Docker in Docker ===== <code> image: docker:stable before_script: - docker info build: stage: build script: - cat ${PASSWORD} | docker login -u <login> --password-stdin <hub> - docker build -t <hub>/<img> . - docker push <hub>/<img> </code> ===== Badges ===== ==== Pylint ==== In your README.md you can include an image with: <code>  </code> If you want to make the image into a link you can use: <code> [](LINKTARGET) </code> * gitlab-ci.yml: <code> pylint: stage: test script: - pylint --rcfile=.pylintrc --output-format=text <LIST-OF-FILES-TO-RUN-PYLINT-AGAINST> | tee pylint.txt - score=$(sed -n 's/^Your code has been rated at \([-0-9.]*\)\/.*/\1/p' pylint.txt) - echo "Pylint score was $score" - anybadge --value=$score --file=public/pylint.svg pylint artifacts: paths: - public/pylint.svg pages: stage: deploy artifacts: paths: - public only: - master </code> confs/gitlab.txt Last modified: 2024/10/14 20:59by 127.0.0.1