AWS CodeDeploy 在部署前不提取文件

问题描述 投票:0回答:0

我正在使用 AWS CodePipeline 将静态网站部署到 S3 存储桶。我已经设置并运行了这个过程,但我唯一的问题是在上传到 S3 之前没有提取 zip 文件构建工件。

它作为 zip 文件上传到 S3 存储桶,并没有像我期望的那样被提取

代码构建

version: 0.2
   phases:
      install:
         runtime-versions:
            nodejs: 16
      pre build:
         commands:
            - echo Installing source NPM dep
            - npm install
      build:
         commands:
            - echo Build started on 'date'
            - npm run build
      post_build:
         commands:
            - zip -r test.zip dist
artifacts:
  files:
     - 'test.zip'

代码部署

amazon-s3 aws-codepipeline aws-codebuild aws-code-deploy
© www.soinside.com 2019 - 2024. All rights reserved.