diff --git a/delivery.yaml b/delivery.yaml index 683607a13b8e637f05f0356395a79cc1e12fc895..e10b7b2cfa5201819a8b990de176aaf67522c406 100644 --- a/delivery.yaml +++ b/delivery.yaml @@ -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}"