I am trying to set up the build for my project on aws codebuild and i am using terraform to setup the all the instances, route53 and ect... but after docker push the terraform script never gets executed. i am wondering why. (I am new to this...)
version: 0.2
phases:
install:
commands: |
echo Running docker daemon
nohup /usr/local/bin/dockerd --host=unix:///var/run/docker.sock --host=tcp://0.0.0.0:2375 --storage-driver=overlay&
build:
commands: |
docker build -t mywebsite .
post_build:
commands: |
IMAGE_TAG=`echo $CODEBUILD_BUILD_ID`
IMAGE_PATH="$IMAGE_PATH_PREFIX:$IMAGE_TAG"
docker tag mywebsite $IMAGE_PATH
docker push $IMAGE_PATH
- cd ./buildTools/terraform
- terraform init
- terraform apply
output at the end in the build history:
sha256:xxxxxx size: 3066
[Container] 2018/01/11 22:33:08 Phase complete: POST_BUILD Success: true
[Container] 2018/01/11 22:33:08 Phase context status code: Message:
and my terraform script were never run at the end? please help.
thanks