Skip to content

Commit

Permalink
Enable build and push of dev-16 branch (#919)
Browse files Browse the repository at this point in the history
* Enable build and push of dev-16 branch

* comment tag-spilo

* add condition to diff pg version

* simplify if else

* remove if else
  • Loading branch information
idanovinda authored Sep 12, 2023
1 parent 13fa3ef commit 76bbb93
Showing 1 changed file with 17 additions and 15 deletions.
32 changes: 17 additions & 15 deletions delivery.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,15 @@ pipeline:
- id: push-spilo-ecr
env:
BASE_IMAGE: container-registry.zalando.net/library/ubuntu-22.04
PGVERSION: 15
PGVERSION: 16
MULTI_ARCH_REGISTRY: container-registry-test.zalando.net/acid
type: script
requires_human_approval: true
when:
- event: push
branch: master
- event: push
branch: dev-16
timeout: 10h
vm_config:
type: linux
Expand All @@ -34,18 +36,18 @@ pipeline:
--push .
cdp-promote-image "$ECR_TEST_IMAGE"
- id: tag-spilo
depends_on: [push-spilo-ecr]
type: script
requires_human_approval: true
when:
event: push
branch: master
commands:
- desc: Tag release spilo image
cmd: |
PATRONIVERSION=$(sed -n 's/^ENV PATRONIVERSION=\([1-9][0-9]*\.[0-9]*\).*$/\1/p' postgres-appliance/Dockerfile)
COUNTER=$(git tag | sed -n "s/^$PATRONIVERSION-p//p" | sort -un | tail -n1)
TAG="$PATRONIVERSION-p$((COUNTER+1))"
# - id: tag-spilo
# depends_on: [push-spilo-ecr]
# type: script
# requires_human_approval: true
# when:
# event: push
# branch: master
# commands:
# - desc: Tag release spilo image
# cmd: |
# PATRONIVERSION=$(sed -n 's/^ENV PATRONIVERSION=\([1-9][0-9]*\.[0-9]*\).*$/\1/p' postgres-appliance/Dockerfile)
# COUNTER=$(git tag | sed -n "s/^$PATRONIVERSION-p//p" | sort -un | tail -n1)
# TAG="$PATRONIVERSION-p$((COUNTER+1))"

git gh-tag "$TAG"
# git gh-tag "$TAG"

0 comments on commit 76bbb93

Please sign in to comment.