fix alignment in delivery.yaml

This commit is contained in:
Felix Kunde 2019-07-12 16:25:15 +02:00
parent 32d202e346
commit 71e6585e7d
1 changed files with 29 additions and 29 deletions

View File

@ -58,37 +58,37 @@ pipeline:
export IMAGE
make push
- id: "build-operator-ui"
type: "script"
- id: build-operator-ui
type: script
commands:
- desc: "Prepare environment"
cmd: |
apt-get update
apt-get install -y build-essential
commands:
- desc: 'Prepare environment'
cmd: |
apt-get update
apt-get install -y build-essential
- desc: "Compile JavaScript app"
cmd: |
cd ui
make appjs
- desc: 'Compile JavaScript app'
cmd: |
cd ui
make appjs
- desc: "Build and push Docker image"
cmd: |
cd ui
image_base='registry-write.opensource.zalan.do/acid/postgres-operator-ui'
if [[ "${CDP_TARGET_BRANCH}" == 'master' && -z "${CDP_PULL_REQUEST_NUMBER}" ]]
then
image="${image_base}"
else
image="${image_base}-test"
fi
image_with_tag="${image}:c${CDP_BUILD_VERSION}"
- desc: 'Build and push Docker image'
cmd: |
cd ui
image_base='registry-write.opensource.zalan.do/acid/postgres-operator-ui'
if [[ "${CDP_TARGET_BRANCH}" == 'master' && -z "${CDP_PULL_REQUEST_NUMBER}" ]]
then
image="${image_base}"
else
image="${image_base}-test"
fi
image_with_tag="${image}:c${CDP_BUILD_VERSION}"
if docker pull "${image}"
then
docker build --cache-from="${image}" -t "${image_with_tag}" .
else
docker build -t "${image_with_tag}" .
fi
if docker pull "${image}"
then
docker build --cache-from="${image}" -t "${image_with_tag}" .
else
docker build -t "${image_with_tag}" .
fi
docker push "${image_with_tag}"
docker push "${image_with_tag}"