🔨 Add user to docker run command

This commit is contained in:
SebClem 2022-02-16 11:12:30 +01:00
parent c92df87146
commit 16df212769
No known key found for this signature in database
GPG Key ID: 3D8E353F900B1305
2 changed files with 2 additions and 2 deletions

View File

@ -11,4 +11,4 @@ renovate_github_token: ""
renovate_log_level: info
renovate_bot_username: renovate-bot
renovate_webhook_secret: ""
renovate_docker_user_group: "0:0"
renovate_docker_user_group: "1000:1000"

View File

@ -1,3 +1,3 @@
#!/bin/bash
docker run --pull always --rm -v "/etc/renovate/config.js:/usr/src/app/config.js" -v "/var/run/docker.sock:/var/run/docker.sock" --env GITHUB_COM_TOKEN="{{ renovate_github_token }}" --env LOG_LEVEL={{ renovate_log_level }} {{ renovate_image_name }}:{{ renovate_image_tag }} renovate "$@"
docker run --pull always --rm -v "/etc/renovate/config.js:/usr/src/app/config.js" -v "/var/run/docker.sock:/var/run/docker.sock" -u "{{ renovate_docker_user_group }}" --env GITHUB_COM_TOKEN="{{ renovate_github_token }}" --env LOG_LEVEL={{ renovate_log_level }} {{ renovate_image_name }}:{{ renovate_image_tag }} renovate "$@"