linux系統部署應用,項目代碼不應該放在home目錄下,是以需要修改gitlab-runner克隆代碼的位置。
出現了以下錯誤
解決:
# 修改gitlab-runner的配置檔案
# 目錄:/etc/gitlab-runner/config.toml
[session_server]
session_timeout = 1800
[[runners]]
name = "this is backend runner"
url = "https://git.gitlab.ltd/"
token = "qweqweqweqweqweqwe"
executor = "shell"
builds_dir = "/opt" # 添加這個配置,指定克隆到别的檔案夾, 如放到/opt下
[runners.custom_build_dir]
enabled = true
[runners.cache]
[runners.cache.s3]
[runners.cache.gcs]