Skip to content

Commit

Permalink
ci: minor update of release flow
Browse files Browse the repository at this point in the history
  • Loading branch information
ypoplavs committed Nov 19, 2024
1 parent 29fbcc1 commit 59fae0b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/helm-releaser-testkube-charts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
fetch-depth: 0

Expand Down Expand Up @@ -47,6 +47,7 @@ jobs:
uses: helm/[email protected]
with:
charts_dir: charts
mark_as_latest: true
env:
CR_TOKEN: "${{ secrets.CI_BOT_TOKEN }}"
CR_SKIP_EXISTING: true
Expand Down Expand Up @@ -255,7 +256,7 @@ jobs:
- name: Get Latest Tag
id: get_latest_tag
run: |
latest_tag=$(git describe --abbrev=0 --tags)
latest_tag=$(git tag -l | grep -E "^testkube-[0-9]+\.[0-9]+\.[0-9]+$" | sort -V | tail -n 1)
echo "::set-output name=latest_tag::${latest_tag}"
echo $latest_tag
Expand All @@ -265,6 +266,8 @@ jobs:
run: |
previous_tag=$(git describe --abbrev=0 --tags ${TAG}^)
echo "::set-output name=previous_tag::${previous_tag}"
echo $previous_tag
env:
TAG: ${{ steps.get_latest_tag.outputs.latest_tag }}

Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/helm-releaser-testkube-main-chart-only.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
fetch-depth: 0

Expand All @@ -44,6 +44,7 @@ jobs:
uses: helm/[email protected]
with:
charts_dir: charts
mark_as_latest: true
env:
CR_TOKEN: "${{ secrets.CI_BOT_TOKEN }}"
CR_SKIP_EXISTING: true
Expand Down Expand Up @@ -251,7 +252,7 @@ jobs:
- name: Get Latest Tag
id: get_latest_tag
run: |
latest_tag=$(git describe --abbrev=0 --tags)
latest_tag=$(git tag -l | grep -E "^testkube-[0-9]+\.[0-9]+\.[0-9]+$" | sort -V | tail -n 1)
echo "::set-output name=latest_tag::${latest_tag}"
echo $latest_tag
Expand All @@ -261,6 +262,8 @@ jobs:
run: |
previous_tag=$(git describe --abbrev=0 --tags ${TAG}^)
echo "::set-output name=previous_tag::${previous_tag}"
echo $previous_tag
env:
TAG: ${{ steps.get_latest_tag.outputs.latest_tag }}

Expand Down

0 comments on commit 59fae0b

Please sign in to comment.