小编Ark*_*tka的帖子

AWS在codeBuild中安装github私有包

您好,我有 codepipeline 来部署我的角度应用程序,在该应用程序中我使用我的私人 github 包。一切都在本地工作等。但是在 codeBuild 上我不知道如何注册到 github 包存储库。

我的构建规范如下所示:

version: 0.2

env:
    variables:
        S3_BUCKET: "{{s3_bucket_url}}"
        BUILD_ENV: "{{BUILD_ENV}}"
        BUILD_FOLDER: "dist"
phases:
  install:
    runtime-versions:
      nodejs: 14
  
  pre_build:
    commands:
      - echo Installing source NPM dependencies...
      - npm install
      - npm install -g @angular/cli
  
  build:
    commands:
      - echo Build started on `date` with $BUILD_ENV flag.
      - ng build $BUILD_ENV
  
  post_build:
     commands:
      - echo Build completed on `date`
      
      
artifacts:
    files:
        - '**/*'
    base-directory: 'dist*'
Run Code Online (Sandbox Code Playgroud)

如果 npm install 失败,因为404 Not Found - GET https://registry.npmjs.org …

npm aws-codepipeline aws-codebuild

7
推荐指数
1
解决办法
1803
查看次数

标签 统计

aws-codebuild ×1

aws-codepipeline ×1

npm ×1