Skip to content
This repository has been archived by the owner on Nov 3, 2021. It is now read-only.

Commit

Permalink
docker tag including cdp build version and target repo counter (#72)
Browse files Browse the repository at this point in the history
* docker tags including cdp build version
  • Loading branch information
lotharschulz committed Jul 11, 2017
1 parent c3f7a71 commit bc5c9c7
Showing 1 changed file with 10 additions and 13 deletions.
23 changes: 10 additions & 13 deletions delivery.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,22 +14,19 @@ build_steps:
- desc: "build and push docker images"
cmd: |
IMAGE=pierone.stups.zalan.do/machinery/ghe-backup:${CDP_BUILD_VERSION}
### bus one ##########################
DOCKERFILE=DockerfileBus
docker build -t $IMAGE -f $DOCKERFILE .
IS_PR_BUILD=${CDP_PULL_REQUEST_NUMBER+true}
if [ "$IS_PR_BUILD" = true ]; then
echo "Image not pushed because the build is not a push to master"
else
IMAGE=pierone.stups.zalan.do/machinery/ghe-backup-bus:cdp-${CDP_BUILD_VERSION}
docker build -t $IMAGE -f DockerfileBus .
if [ -z "$CDP_PULL_REQUEST_NUMBER" ]; then
docker push $IMAGE
else
echo "Image not pushed because the build is not a push to master"
fi
### automata one ##########################
DOCKERFILE=DockerfileAutomata
docker build -t $IMAGE -f $DOCKERFILE .
IS_PR_BUILD=${CDP_PULL_REQUEST_NUMBER+true}
if [ "$IS_PR_BUILD" = true ]; then
echo "Image not pushed because the build is not a push to master"
else
IMAGE=pierone.stups.zalan.do/machinery/ghe-backup-automata:cdp-${CDP_BUILD_VERSION}
docker build -t $IMAGE -f DockerfileAutomata .
if [ -z "$CDP_PULL_REQUEST_NUMBER" ]; then
docker push $IMAGE
else
echo "Image not pushed because the build is not a push to master"
fi

0 comments on commit bc5c9c7

Please sign in to comment.