📜  buildspec 条件 - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:51:29.912000             🧑  作者: Mango

代码示例1
- MANIFEST=$(aws ecr batch-get-image --region eu-west-1 --repository-name application-image --image-ids imageTag=latest --query 'images[].imageManifest' --output text)
   - |-
     if [ -n "$MANIFEST" ]; then
       aws ecr put-image --region eu-west-1 --repository-name application-image --image-tag ${IMAGE_TAG} --image-manifest "$MANIFEST"
     fi