generated from replicatedhq/krew-plugin-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #15 from bedirhangull/cd-ci-update-old
(cd/ci): updated to old version without sh script
- Loading branch information
Showing
3 changed files
with
12 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,41 +12,16 @@ jobs: | |
steps: | ||
- name: Checkout | ||
uses: actions/checkout@master | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Setup Go | ||
uses: actions/setup-go@v1 | ||
with: | ||
go-version: '1.20' | ||
|
||
- name: Ensure script is executable | ||
run: | | ||
chmod +x scripts/update-krew-yaml.sh | ||
ls -l scripts/update-krew-yaml.sh | ||
go-version: 1.20 | ||
- name: GoReleaser | ||
uses: goreleaser/goreleaser-action@v4 | ||
uses: goreleaser/goreleaser-action@v1 | ||
with: | ||
distribution: goreleaser | ||
version: latest | ||
args: release --clean | ||
args: release | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Run update script | ||
run: | | ||
pwd | ||
ls -l scripts/ | ||
./scripts/update-krew-yaml.sh | ||
- name: Commit and push updated Krew manifest | ||
run: | | ||
git config user.name github-actions | ||
git config user.email [email protected] | ||
git add deploy/krew/plugin.yaml | ||
git commit -m "Update Krew manifest for release ${GITHUB_REF#refs/tags/}" | ||
git push | ||
- name: Update new version in krew-index | ||
uses: rajatjindal/[email protected] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters