Skip to content

This docker image provides the latest version of pyupio.

License

Notifications You must be signed in to change notification settings

ckleemann/docker-pyup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pyup bot docker image

Build Status

This docker image provides the latest version of pyupio. The pyupio version is automatically updated by dependabot and pushed to docker hub.

GitLab CI

To use this image inside a GitLab CI environment as a scheduled task add the following snippet to your .gitlab-ci.yml:

pyup:
  image:
    name: ckleemann/pyup
    entrypoint: [""]
  stage: pyup
  only:
    - schedules
  variables:
    GIT_STRATEGY: none
  cache: {}
  before_script:
    - export GITLAB_URL=$(echo $CI_PROJECT_URL | cut -d'/' -f-3)
  script:
    - pyup --provider gitlab --repo=$CI_PROJECT_PATH --user-token=$SCHEDULE_USER_TOKEN@$GITLAB_URL --branch $CI_COMMIT_REF_NAME

Then add a scheduled task under CI / CD -> Schedules. In the variables section add SCHEDULE_USER_TOKEN and the user access token which is used for the API calls.

There are also some not so well documented configuration parameter for gitlab. Add the following snippets to your .pyup.yml:

gitlab:
    should_remove_source_branch: True
    merge_when_pipeline_succeeds: False