1개 답변
- 최신
- 최다 투표
- 가장 많은 댓글
1
Using the BuildSpec.yml file for AWS CodeBuild provides control of your files once they have been cloned from GitHub. Consider using Linux commands to manipulate the location of your code as you need in the appropriate section of the BuidSpec.yml file. For example, you can do the following:
- mkdir -p ./NewLocationForCodeWData/NewCodeSubDirectory
- mkdir -p ./NewLocationForCodeWData/NewDataSubDirectory
- mv ./GitHubRepoName/SpecificDirectory/* ./NewLocationForCodeWData/NewSubDirectory/
- mv ./DataSubDirectory/* ./NewLocationForCodeWData/NewDataSubDirectory/
With the file system set up as you like, adjust the base-directory for in the artifacts section of BuildSpec.yml
artifacts:
base-directory: ./NewLocationForCodeWData
The zipped output of AWS CodeBuild will consist of the contents of the subfolder, NewLocationForCodeWData
답변함 10달 전
관련 콘텐츠
- AWS 공식업데이트됨 일 년 전
- AWS 공식업데이트됨 10달 전