GCE 和 Github Action
                    目录
                    
                
                
            
                    警告
                
                
                        本文最后更新于 2021-03-21,文中内容可能已过时。
                通过 Github Action 部署应用, 此方法可能有些权限问题。
一、进入GCP的 IAM & Admin
    1.1 在Service Accounts中创建一个用于github action的帐号
    1.2 将github帐号添加到默认的[email protected]帐号中
    1.3 在IAM中将github帐号添加到Compute Instance Admin (v1)
1.4 创建key
二、Github Action配置
2.1 编写 Github Action
进入Github账户 -> Action -> New workflow
 | 
 | 
2.2 添加 secrets
Setting -> Secrets
2.3 手动run
(gcloud.beta.compute.scp) Could not add SSH key to instance metadata permissions