Skip to content

Commit

Permalink
comment tag-spilo
Browse files Browse the repository at this point in the history
  • Loading branch information
idanovinda committed Sep 11, 2023
1 parent 4a42cd5 commit a68ebd0
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions delivery.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,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 a68ebd0

Please sign in to comment.