Skip to content
This repository has been archived by the owner on Jul 17, 2022. It is now read-only.

MarcoGlauser/poetry-ci-updater

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Poetry CI Updater

Not maintained anymore use renovate instead

This package is intended to help integrating poetry with your CI.

It will create a new branch where it will push the updated poetry.lock to. If your git provider is supported, it will also create a pull/merge request.

Installation

Pypi

poetry add --dev poetry-ci-updater

Git

poetry add --dev git+https://github.com/MarcoGlauser/poetry-ci-updater@master

Usage

Gitlab

Because Gitlab currently can't write to the repository with the $CI_JOB_TOKEN, you will need to define a secret enviroment variable with the name PERSONAL_ACCESS_TOKEN.

update-dependencies:
  stage: build
  image: python:3.8
  before_script:
    - git config user.email "{$GITLAB_USER_EMAIL}"
    - git config user.name "${GITLAB_USER_NAME}"
  script:
    - pip install poetry
    - poetry install
    - git remote rm origin
    - git remote add origin https://gitlab-ci-token:${PERSONAL_ACCESS_TOKEN}@${CI_SERVER_HOST}:${CI_SERVER_PORT}/${CI_PROJECT_PATH}.git
    - CI_JOB_TOKEN=${PERSONAL_ACCESS_TOKEN} poetry run poetry-ci-updater
  rules:
    - if: $CI_PIPELINE_SOURCE == "schedule"

TODO

  • Github Actions support
  • Tests
  • Provider Options
  • Keep update branch up to date

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages