Skip to content

Commit

Permalink
PLT-38: Minor nits
Browse files Browse the repository at this point in the history
  • Loading branch information
emmeowzing committed Apr 27, 2024
1 parent 3399b94 commit c811654
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/jobs/helm/release/ecr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,12 +88,13 @@ steps:
- utils-install-yq
- run:
name: Update image tag
command: |
command: |+
if [[ "<< parameters.image-tag >>" =~ v[0-9]+.[0-9]+.[0-9]+ ]]; then
export _DOCKER_TAG="$(printf "%s" "<< parameters.image-tag >>" | grep -oP "(?<=v).*" | awk NF)"
else
export _DOCKER_TAG="<< parameters.image-tag >>"
fi
yq -i "<< parameters.image-tag-path >> = \"$_DOCKER_TAG\"" << parameters.path >>/values.yaml
- run:
name: Helm registry login (ECR via 'aws ecr')
Expand Down

0 comments on commit c811654

Please sign in to comment.