--- title: 使用Github Action建置CI/CD --- ###### tags: `CI/CD` `github` # 使用Github Action建置CI/CD ## 一、建立yml檔 於專案目錄 ".github/workflows",在此路徑下建立的OOXX.yml都會被執行。 ## 二、yml檔可用參數 參數眾多,參考:https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idsteps 另外Github也貼心的提供了多種情境的yml範例讓使用者參考,例如阿里雲、AWS、Docker等等。 細節參考:https://github.com/actions/starter-workflows/tree/main/ci ## 三、相關成本 ``` Product | Storage | Minutes (per month) GitHub Free | 500 MB | 2,000 GitHub Pro | 1 GB | 3,000 GitHub Free for organizations | 500 MB | 2,000 GitHub Team | 2 GB | 3,000 GitHub Enterprise Cloud | 50 GB | 50,000 ``` ## 四、相較於Gitlab Ci Gitlab 免費版本每月為400分鐘限制、premium為10,000分鐘限制。 ## 五、坑點 當該組credential帶有特殊字元,例如"+"號之類的,請更換金鑰,否則透過github去登入時會因為字元改掉產生登入錯誤的坑,非常找到問題。
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up