「GitHub Actions」:修訂間差異
跳至導覽
跳至搜尋
第3行: | 第3行: | ||
== 範例 == | == 範例 == | ||
=== test-githubactions === | |||
在[https://github.com/gslin/test-githubactions test-githubactions]這邊有範例,主要是這兩個檔案: | |||
* https://github.com/gslin/test-githubactions/blob/main/.github/workflows/default.yml | |||
* https://github.com/gslin/test-githubactions/blob/main/scripts/setup.sh | |||
前置作業包括了: | |||
* SSH的Port 222要打開。 | |||
* 建立<code>service-${PROJECT_NAME}</code>帳號及對應家目錄。 | |||
* 透過<code>sudo loginctl enable-linger service-${PROJECT_NAME}</code>啟用使用者本身的[[systemd]]。 | |||
== 相關連結 == | == 相關連結 == |
於 2024年6月14日 (五) 06:49 的修訂
GitHub Actions是GitHub提供的CI/CD服務。
範例
test-githubactions
在test-githubactions這邊有範例,主要是這兩個檔案:
- https://github.com/gslin/test-githubactions/blob/main/.github/workflows/default.yml
- https://github.com/gslin/test-githubactions/blob/main/scripts/setup.sh
前置作業包括了:
- SSH的Port 222要打開。
- 建立
service-${PROJECT_NAME}
帳號及對應家目錄。 - 透過
sudo loginctl enable-linger service-${PROJECT_NAME}
啟用使用者本身的systemd。
相關連結
外部連結
- 官方網站 (英文)