DOWNLOAD_SOURCE - YAML_FILE_ERROR: mapping values are not allowed in this context at line 1
Reference YAML file:
buildspec.yaml version: 0.2
phases: pre_build: commands: - echo Logging in to Amazon ECR... - $(aws ecr get-login --no-include-email --region $AWS_DEFAULT_REGION) build: commands: - echo Build started on date - echo Building the Docker image... - docker build -t web:1 . - docker tag web:1 020861552741.dkr.ecr.ap-southeast-1.amazonaws.com/hasib_cloud post_build: commands: - echo Build completed ondate` - echo Pushing the Docker image... - docker push 020861552741.dkr.ecr.ap-southeast-1.amazonaws.com/hasib_cloud ~
phases: pre_build: commands: - echo Logging in to Amazon ECR... - $(aws ecr get-login --no-include-email --region $AWS_DEFAULT_REGION) build: commands: - echo Build started on
- echo Building the Docker image... - docker build -t web:1 . - docker tag web:1 020861552741.dkr.ecr.ap-southeast-1.amazonaws.com/hasib_cloud post_build: commands: - echo Build completed on
Would you re-sharing your YAML and use ``` for the code block instead of `? There's an issue with your YAML, but it's hard to provide guidance with the current formatting.
You are not logged in. Log in to post an answer.
A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.
Would you re-sharing your YAML and use ``` for the code block instead of `? There's an issue with your YAML, but it's hard to provide guidance with the current formatting.