📄️ github action basic introduction
github action在設計上提供許多表示式,內建函示,上下文,這邊將整理官網教學知識,以及使用心得。
📄️ demo basic github action
GitHub Action 是 continuous integration and continuous delivery (CI/CD)平台,除了一般的 build test deploy 他另外有給專案管理的各種小功能,例如給 pull request 打標籤。提供免費的 runner 幫你執行任務,也接受self-hosted runner。
📄️ use react to build your own static website by github page
記錄一下github page配合git hub action的部署react vite過程,並提供github multiple repo管理辦法,主要步驟1.建立一個repo名為your_github_username.github.io 2.建立gh-pages分枝3.地端建立CI yml檔 4.設定github page使用branch gh-pages 5.推地端資料到main branch 6.CI會幫你執行build並把資源放到gh-pages branch ,Done
📄️ CI:use github action to build image and push to git hub container registry
use CI in github action ,and variable in environments to build image and push to registry. github action 入門攻略,CI 推image到github
📄️ .env file management in github action
因為是使用.env file管理環境變數,所以推到github上一定會排除.env,然後再試CICD時候就想說為啥本地build的image跑起來沒問題,一到CI build出來的image就掛了,試了半天才想到是.evn沒給。這邊會demo如何在github action使用.env資料。
📄️ s3 set iam permissions for Github Actions to achieve CIBuild an AWS s3 static website
建立aws靜態網站接上cloudfront,最後設定 github action 在 code 更新以後會把 build 好的資料由 build 資料夾底下東西發到 S3.
📄️ environment variable and secrets variable config in github
使用 CI 跟寫程式都會遇到要從 env 拿取變數值的時候,在 github 管理方式如下,主要判斷是這個變數是否要給多個 workflow 使用。如果您不確定,也可以從存儲庫密鑰開始為所有東西創建密鑰。如果之後有引入需要不同密鑰的不同環境,例如 prod,dev,test 等,則可以將存儲庫密鑰移動到特定環境。然後在特定環境用特定變數值。