Skip to content

Commit

Permalink
adding build for cdk image
Browse files Browse the repository at this point in the history
  • Loading branch information
Brent Langston committed Mar 10, 2020
1 parent d9f1417 commit 02b4f09
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions buildspec-dockerhub.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ phases:
- echo $IMAGE_TAG > code_hash.txt
- docker build -t $DOCKER_HUB_USERNAME/$PROJECT_NAME:$IMAGE_TAG .
- docker tag $DOCKER_HUB_USERNAME/$PROJECT_NAME:$IMAGE_TAG $DOCKER_HUB_USERNAME/$PROJECT_NAME:$IMAGE_WORD_TAG
- docker build -f Dockerfile.cdk -t $DOCKER_HUB_USERNAME/$PROJECT_NAME:cdk .
# - docker build -t myimage .
post_build:
commands:
Expand All @@ -44,6 +45,7 @@ phases:
- echo Pushing the Docker image...
- docker push $DOCKER_HUB_USERNAME/$PROJECT_NAME:$IMAGE_TAG
- docker push $DOCKER_HUB_USERNAME/$PROJECT_NAME:$IMAGE_WORD_TAG
- docker push $DOCKER_HUB_USERNAME/$PROJECT_NAME:cdk
# - docker pull anchore/cli
# - docker run -d -v $(pwd):/source-dir -v /var/run/docker.sock:/var/run/docker.sock --name anchore anchore/cli:latest
# - docker exec anchore anchore feeds sync
Expand Down

0 comments on commit 02b4f09

Please sign in to comment.