Skip to content

Commit

Permalink
ci: move crane results to variable for debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
trevorwhitney committed Oct 16, 2024
1 parent a91ca8a commit 647aeab
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/helm-weekly-release-pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ jobs:

- name: Update/regenerate files
id: update-k
run: bash .github/workflows/scripts/helm-weekly-release.sh -k
run: |
bash .github/workflows/scripts/helm-weekly-release.sh -k
- name: Create Pull Request
uses: peter-evans/create-pull-request@v5
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/scripts/helm-weekly-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ source "${script_dir}/common.sh"
find_latest_image_tag() {
local docker_hub_repo=$1
local regExp="^(k|weekly-k)\d+-[a-z0-9]+"
crane ls "${docker_hub_repo}" | grep -P "${regExp}" | sed -E "s/([weekly-]*k[[:digit:]]*)-([^-]*).*/\1-\2/g" | sort -Vur | head -1
local crane_results
crane_results=$(crane ls "${docker_hub_repo}" | grep -P "${regExp}")
echo "${crane_results}" | sed -E "s/([weekly-]*k[[:digit:]]*)-([^-]*).*/\1-\2/g" | sort -Vur | head -1
}

# takes k197-abcdef and returns r197, k197-abcdef-arm64 and returns k197, weekly-k197-abcdef and returns k197
Expand Down

0 comments on commit 647aeab

Please sign in to comment.