Skip to content

Commit

Permalink
fix manifest
Browse files Browse the repository at this point in the history
Signed-off-by: Jirka Kremser <[email protected]>
  • Loading branch information
jkremser committed Jul 16, 2024
1 parent 97d1d7e commit 9f1077e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/update.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ jobs:
- name: Update the kubectl plugin manifest
run: |
yq -i '.spec.version = "${{ github.event.release.tag_name }}"' .krew.yaml
yq -i '.spec.platforms[0].uri = "https://github.com/${{ env.GITHUB_ACTION_REPOSITORY }}/archive/${{ github.ref }}.zip"' .krew.yaml
_sha256=$(curl -Ls https://github.com/${{ env.GITHUB_ACTION_REPOSITORY }}/archive/${{ github.ref }}.zip -o- | shasum -a 256 | cut -d' ' -f1)
yq -i '.spec.platforms[0].uri = "https://github.com/${{ env.GITHUB_REPOSITORY }}/archive/${{ github.ref }}.zip"' .krew.yaml
_sha256=$(curl -Ls https://github.com/${{ env.GITHUB_REPOSITORY }}/archive/${{ github.ref }}.zip -o- | shasum -a 256 | cut -d' ' -f1)
yq -i '.spec.platforms[0].sha256 = "'${_sha256}'"' .krew.yaml
echo -e "Manifest:\n\n"
cat .krew.yaml
Expand All @@ -46,7 +46,7 @@ jobs:
This automated PR was created by [this action][1].
[1]: https://github.com/${{ env.GITHUB_ACTION_REPOSITORY }}/actions/runs/${{ github.run_id }}
[1]: https://github.com/${{ env.GITHUB_REPOSITORY }}/actions/runs/${{ github.run_id }}
- name: Check PR
run: |
Expand Down
2 changes: 1 addition & 1 deletion .krew.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ spec:
values:
- darwin
- linux
uri: https://github.com//archive/refs/tags/v0.0.1.zip
uri: https://github.com/jkremser/kubectl-kedify/archive/refs/tags/v0.0.1.zip
# 'sha256' is the sha256sum of the zip from url above (shasum -a 256 ..zip)
sha256: 0019dfc4b32d63c1392aa264aed2253c1e0c2fb09216f8e2cc269bbfb8bb49b5
# {{addURIAndSha "https://github.com/jkremser/kubectl-kedify/releases/download/{{ .TagName }}/kubectl-kedify{{ .TagName }}.tar.gz" .TagName }}
Expand Down

0 comments on commit 9f1077e

Please sign in to comment.