version: 0.2 phases: build: commands: # make all shell scripts executable. This is required when running code copyied from S3 - find ./ -type f -name "*.sh" -exec chmod +x {} \; - cp release/rolebased/china/installer_china.yaml tests/codebuild/ - cd tests - aws ecr get-login-password --region $CLUSTER_REGION | docker login --username AWS --password-stdin $ECR_CACHE_URI || true - docker pull ${ECR_CACHE_URI}:latest || true - docker build -f images/Dockerfile.canary.china . -t ${ECR_CACHE_URI}:latest --quiet || true - docker run --name operator-canary-china $(env | cut -f1 -d= | sed 's/^/-e /') --mount type=bind,source="$(pwd)/codebuild/",target="/app/" ${ECR_CACHE_URI}:latest - docker push ${ECR_CACHE_URI}:latest || true