fix alignment in delivery.yaml
This commit is contained in:
		
							parent
							
								
									32d202e346
								
							
						
					
					
						commit
						71e6585e7d
					
				|  | @ -58,37 +58,37 @@ pipeline: | ||||||
|             export IMAGE |             export IMAGE | ||||||
|             make push |             make push | ||||||
| 
 | 
 | ||||||
|   - id: "build-operator-ui" |     - id: build-operator-ui | ||||||
|     type: "script" |       type: script | ||||||
| 
 | 
 | ||||||
|     commands: |       commands: | ||||||
|       - desc: "Prepare environment" |         - desc: 'Prepare environment' | ||||||
|         cmd: | |           cmd: | | ||||||
|           apt-get update |             apt-get update | ||||||
|           apt-get install -y build-essential |             apt-get install -y build-essential | ||||||
| 
 | 
 | ||||||
|       - desc: "Compile JavaScript app" |         - desc: 'Compile JavaScript app' | ||||||
|         cmd: | |           cmd: | | ||||||
|           cd ui |             cd ui | ||||||
|           make appjs |             make appjs | ||||||
| 
 | 
 | ||||||
|       - desc: "Build and push Docker image" |         - desc: 'Build and push Docker image' | ||||||
|         cmd: | |           cmd: | | ||||||
|           cd ui |             cd ui | ||||||
|           image_base='registry-write.opensource.zalan.do/acid/postgres-operator-ui' |             image_base='registry-write.opensource.zalan.do/acid/postgres-operator-ui' | ||||||
|           if [[ "${CDP_TARGET_BRANCH}" == 'master' && -z "${CDP_PULL_REQUEST_NUMBER}" ]] |             if [[ "${CDP_TARGET_BRANCH}" == 'master' && -z "${CDP_PULL_REQUEST_NUMBER}" ]] | ||||||
|           then |             then | ||||||
|             image="${image_base}" |               image="${image_base}" | ||||||
|           else |             else | ||||||
|             image="${image_base}-test" |               image="${image_base}-test" | ||||||
|           fi |             fi | ||||||
|           image_with_tag="${image}:c${CDP_BUILD_VERSION}" |             image_with_tag="${image}:c${CDP_BUILD_VERSION}" | ||||||
| 
 | 
 | ||||||
|           if docker pull "${image}" |             if docker pull "${image}" | ||||||
|           then |             then | ||||||
|             docker build --cache-from="${image}" -t "${image_with_tag}" . |               docker build --cache-from="${image}" -t "${image_with_tag}" . | ||||||
|           else |             else | ||||||
|             docker build -t "${image_with_tag}" . |               docker build -t "${image_with_tag}" . | ||||||
|           fi |             fi | ||||||
| 
 | 
 | ||||||
|           docker push "${image_with_tag}" |             docker push "${image_with_tag}" | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue