日本熟妇hd丰满老熟妇,中文字幕一区二区三区在线不卡 ,亚洲成片在线观看,免费女同在线一区二区

生成Git倉庫地址ACS::GitCodeRepo

更新時(shí)間:

用途

生成用戶指定的github/gitee倉庫代碼的地址

語法

Tasks:
  - Name: GitCodeRepo
    Action: ACS::GitCodeRepo
    Description: 指定代碼源,生成臨時(shí)授權(quán)鏈接
    Properties:
      Platform: github # 必填,平臺(tái),可選github/gitee
      Owner: your-github-user-name # 必填,github賬戶名
      Organization: your-github-organization # 可選,組織名稱
      Repository: your-github-repository # 必填,倉庫名稱
    Outputs:
      authorizedUrl: # 輸出指定的github/gitee倉庫代碼的地址
        Type: String
        ValueSelector: AuthorizedUrl # jq的選擇器語法,以task的返回作為JSON輸入,jq的語法請(qǐng)參考 https://stedolan.github.io/jq

說明

  • 使用時(shí)需要完成授權(quán):請(qǐng)?jiān)趧?chuàng)建模板或執(zhí)行時(shí)注意相關(guān)提示,按要求完成授權(quán)即可使用

  • 輸出的結(jié)果是一個(gè)url,如:

https://your_***@github.com/owner/repo

可用于拉取代碼,如:

git clone https://your_***@github.com/owner/repo .

示例

FormatVersion: OOS-2019-06-01
Parameters:
  instanceId:
    Description: the instance id that you will start.
    Type: String
Tasks:
  - Name: GitCodeRepo
    Action: ACS::GitCodeRepo
    Description: 指定代碼源,生成臨時(shí)授權(quán)鏈接
    Properties:
      Platform: github
      Owner: your-github-user-name
      Organization: your-github-organization
      Repository: your-github-repository
    Outputs:
      authorizedUrl:
        Type: String
        ValueSelector: AuthorizedUrl
  - Name: CloneCode
    Action: ACS::ECS::RunCommand
    Description:
      en: Execute clone code command
      zh-cn: 執(zhí)行clone代碼命令
    Properties:
      instanceId: '{{ instanceId }}'
      commandType: RunShellScript
      commandContent: |-
        git clone '{{ GitCodeRepo.authorizedUrl }}' .