Skip to content

Commit 87c3afc

Browse files
authored
chore: add version suffix to dev artifacts (#64)
1 parent 4ea9d3f commit 87c3afc

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.github/workflows/pre-merge.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,4 +135,5 @@ jobs:
135135
run_docker_push: true
136136
run_helm_build: true
137137
run_helm_push: true
138+
version_suffix: "-pr-${{ github.event.number }}"
138139
secrets: inherit

Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,11 @@ ifeq ($(findstring -dev,$(VERSION)), -dev)
2525
VERSION := $(VERSION)-$(VERSION_DEV_SUFFIX)
2626
endif
2727

28+
# Add VERSION_SUFFIX as suffix if specified and not empty
29+
ifneq ($(strip $(VERSION_SUFFIX)),)
30+
VERSION := $(VERSION)$(VERSION_SUFFIX)
31+
endif
32+
2833
HELM_VERSION ?= ${VERSION}
2934

3035
REGISTRY ?= 080137407410.dkr.ecr.us-west-2.amazonaws.com

0 commit comments

Comments
 (0)