Update .gitlab-ci.yml file

This commit is contained in:
john Bigoudops 2021-10-25 13:25:32 +00:00
parent d1c8d97200
commit 4df574277e
1 changed files with 29 additions and 0 deletions

29
.gitlab-ci.yml Normal file
View File

@ -0,0 +1,29 @@
badges:
image: python:3.9
stage: deploy
variables:
PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
PRIVATE_TOKEN: $ACCESS_TOKEN
cache:
key: badges
paths:
- .cache/pip
- venv/
before_script:
- python -V
- pip install virtualenv
- virtualenv venv
- source venv/bin/activate
script:
- pip install badges-gitlab
- badges-gitlab -V
- badges-gitlab
artifacts:
when: always
paths:
- public/badges/*.svg
expire_in: 3 months
rules:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
when: always
allow_failure: true