![](/img/trans.png)
[英]How to access variables in gitlab-ci.yml using gitlab-ci-multi-runner on windows
[英]How can i auto deploy with gitlab-ci.yml on a remote server without GitLab Runner?
我想使用來自 gitlab-ci.yml 的數據庫和 api 自動部署一個簡單的 docker-compose.yml 文件。 I have a ubuntu server running on a specific ip where i can pull the gitlab project and run it manualy with docker-compose up -d
, but how can I achieve this automatically through gitlab-ci.yml, without using gitlab runner?
Gitlab CI(“持續集成”)固有地涉及 Gitlab Runners。
你不能在沒有另一個的情況下使用一個。
無論您是否使用 Gitlab Runner,您都可以通過多種不同的方式實現您的要求,例如:
subprocess
調用系統命令,例如scp
來復制文件, ssh <host> <command>
來運行遠程命令。 如果您不使用 Gitlab Runner,您的代碼將直接調用這些。 對於使用 Gitlab Runner 的人,他們的.gitlab-ci.yml
將包含這些腳本/腳本調用。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.