Commit 6ad2999b authored by Guilhem Bonnefille's avatar Guilhem Bonnefille
Browse files

fix: let bash evaluate the $file argument

parent b9d5c690
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -298,9 +298,7 @@ stages:
    for file in $PACKAGES_FILES_PATTERN
    do
      log_info "Publishing \\e[33;1m${file}\\e[0m"
      # The single quotes are inside double quotes, so evaluation occurs, only once.
      # shellcheck disable=SC2016
      curl -sSf --header "JOB-TOKEN: $CI_JOB_TOKEN" --upload-file "$file" "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/${CI_PROJECT_NAME}/${CI_COMMIT_TAG}/$(basename '$file')"
      curl -sSf --header "JOB-TOKEN: $CI_JOB_TOKEN" --upload-file "$file" "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/${CI_PROJECT_NAME}/${CI_COMMIT_TAG}/$(basename "$file")"
    done
  }