Skip to content

Commit

Permalink
Restore tagging
Browse files Browse the repository at this point in the history
  • Loading branch information
hughcapet committed Nov 12, 2024
1 parent e822105 commit 2901da0
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions delivery.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,19 @@ pipeline:
-t "$ECR_TEST_IMAGE" \
--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))"
git gh-tag "$TAG"

0 comments on commit 2901da0

Please sign in to comment.