Pour tout problème contactez-nous par mail : support@froggit.fr | La FAQ :grey_question: | Rejoignez-nous sur le Chat :speech_balloon:

Skip to content
Snippets Groups Projects
Commit fd67fe1b authored by Dorian Turba's avatar Dorian Turba
Browse files

add strip extra to pipcompile and fix typo in cmd

parent 2ab90b5d
No related branches found
No related tags found
1 merge request!1feat: add depandabot template
Pipeline #24101 failed
...@@ -19,7 +19,7 @@ depandabot: ...@@ -19,7 +19,7 @@ depandabot:
- | - |
COMMIT_MESSAGE="build(deps): bump new versions" COMMIT_MESSAGE="build(deps): bump new versions"
- $([ -f ${OUTPUT_FILE_PATH} ]) && ACTION="update" || ACTION="create" - $([ -f ${OUTPUT_FILE_PATH} ]) && ACTION="update" || ACTION="create"
- pip-compile --quiet -o ${OUTPUT_FILE_PATH} ${REQUIREMENTS_FILE_PATH} - pip-compile --quiet --strip-extras -o ${OUTPUT_FILE_PATH} ${REQUIREMENTS_FILE_PATH}
- if [ -n "$(git status --porcelain ${OUTPUT_FILE_PATH})" ]; then - if [ -n "$(git status --porcelain ${OUTPUT_FILE_PATH})" ]; then
- | - |
curl --header "Authorization: Bearer ${DEPANDABOT_TOKEN}" \ curl --header "Authorization: Bearer ${DEPANDABOT_TOKEN}" \
...@@ -34,7 +34,7 @@ depandabot: ...@@ -34,7 +34,7 @@ depandabot:
--form "actions[][file_path]=${OUTPUT_FILE_PATH}" \ --form "actions[][file_path]=${OUTPUT_FILE_PATH}" \
--form "actions[][content]=<${OUTPUT_FILE_PATH}" \ --form "actions[][content]=<${OUTPUT_FILE_PATH}" \
"https://${GITLAB_API_URL}/api/v4/projects/${CI_PROJECT_ID}/repository/commits" "https://${GITLAB_API_URL}/api/v4/projects/${CI_PROJECT_ID}/repository/commits"
- requirement-compare ${REQUIREMENTS_FILE_PATH} ${OUTPUT_FILE_PATH} - requirements-compare ${REQUIREMENTS_FILE_PATH} ${OUTPUT_FILE_PATH}
- | - |
curl --header "Authorization: Bearer ${DEPANDABOT_TOKEN}" \ curl --header "Authorization: Bearer ${DEPANDABOT_TOKEN}" \
--form "source_branch=$DEPS_BRANCH" \ --form "source_branch=$DEPS_BRANCH" \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment