我设置了一个测试环境Codebuild + Github,并且遇到了一个问题:每次我在Github中进行提交时,Codebuild都会触发3个相同的构建。
我的buildspec.yml:
version: 0.2
phases:
pre_build:
commands:
# Taskfile
- curl -sL https://taskfile.dev/install.sh | sh
build:
commands:
- ./bin/task build
post_build:
commands:
- zip -r trigger.zip trigger
artifacts:
files:
- 'trigger.zip'
discard-paths: yes
一些值得注意的事情:
您是否知道为什么会发生这种情况,以及如何防止这种情况再次发生?
我设置了一个测试环境Codebuild + Github,并且遇到了一个问题:每次我在Github中进行提交时,Codebuild都会触发3个相同的构建。我的buildspec.yml:版本:0.2个阶段:...
感谢您使用AWS CodeBuild。