自從我嘗試通過 Windows PowerShell 上的本地 GitLab Runner 使用 GitLab CI/CD 部署到 Heroku 無濟于事以來已經有好幾天了(下面的作業日志片段):
Running with gitlab-runner 15.4.0 (43b2dc3d)
on R1 gYmo5ZZy
Resolving secrets
Preparing the "shell" executor
Using Shell executor...
Preparing environment
Running on DESKTOP-*******...
Getting source from Git repository
Fetching changes with git depth set to 20...
Reinitialized existing Git repository in C:/GitLab-Runner/builds/gYmo5ZZy/0/mernguys/learn-gitlab-ultimate-trial/.git/
Checking out 3f46edc0 as master...
Removing .dpl/
git-lfs/2.6.1 (GitHub; windows amd64; go 1.11.1; git dc072c3e)
Skipping Git submodules setup
Executing "step_script" stage of the job script
$ gem install dpl
Successfully installed dpl-1.10.16
Parsing documentation for dpl-1.10.16
Done installing documentation for dpl after 0 seconds
1 gem installed
$ dpl --provider=heroku --app=%HEROKU_APP_NAME% --api-key=%HEROKU_PRODUCTION_KEY%
Installing deploy dependencies
The system cannot find the path specified.
The system cannot find the path specified.
authentication succeeded
checking for app [MASKED]
found app [MASKED]
Cleaning up git repository with git stash --all. If you need build artifacts for deployment, set deploy.skip_cleanup: true. See https://docs.travis-ci.com/user/deployment#Uploading-Files-and-skip_cleanup.
No local changes to save
creating application archive
uploading application archive
`<?xml version="1.0" encoding="UTF-8"?> <Error><Code>AccessDenied</Code><Message>Access Denied</Message><RequestId>EN1C6ME3D2YG6HJ0</RequestId><HostId>Hhht2DwvnIyMCFazTLXrRer9I99Gxpaw2MHLwP/0ImlETnat5D2KIhsbO9ZckrSm8//JI99xlrQ=</HostId></Error>`curl: (6) Could not resolve host: application
curl: (6) Could not resolve host: version=3'
curl: (6) Could not resolve host: dpl
triggering new deployment
Channel is not registered.
curl: (6) Could not resolve host: application
curl: (6) Could not resolve host: version=3'
curl: (6) Could not resolve host: dpl
No stash entries found.
deploy failed
Preparing deploy
Deploying application
Cleaning up project directory and file based variables
ERROR: Job failed: exit status 1
當它到達“上傳應用程式存檔”步驟時,問題就發生了。任何幫助,將不勝感激。
uj5u.com熱心網友回復:
在 Windows 上,使用用于 Linux 環境的引號curl可能會遇到困難。在您的情況下,為您的 GitLab 運行器(通過相關軟體包安裝)
使用 WSL2 Linux 環境可能更容易除錯/使其運行。
還要檢查您是否必須洗掉/重新登錄您的 Heroku 應用程式。
轉載請註明出處,本文鏈接:https://www.uj5u.com/ruanti/521080.html
標籤:电源外壳heroku卷曲GitLabgitlab-ci-runner
上一篇:嘗試發出POST請求,使用cURL,使用Python請求時得到403
下一篇:使用cURLPHP發出API請求
