mirror of
https://github.com/apricote/Listory.git
synced 2026-01-13 13:11:02 +00:00
ci(helm): fix chart-releaser install
Using ::add-path:: is deprecated and fails.
This commit is contained in:
parent
4f6234ef64
commit
f9fde55c5b
1 changed files with 14 additions and 15 deletions
29
.github/workflows/helm-repo-index.yaml
vendored
29
.github/workflows/helm-repo-index.yaml
vendored
|
|
@ -1,5 +1,6 @@
|
||||||
name: Helm repo index
|
name: Helm repo index
|
||||||
on: release
|
on: [push]
|
||||||
|
#on: release
|
||||||
jobs:
|
jobs:
|
||||||
publish:
|
publish:
|
||||||
name: Publish helm repo index to gh-pages
|
name: Publish helm repo index to gh-pages
|
||||||
|
|
@ -9,25 +10,23 @@ jobs:
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Install chart-releaser
|
- name: Install chart-releaser
|
||||||
env:
|
uses: giantswarm/install-binary-action@v1.0.0
|
||||||
VERSION: 1.0.0-beta.1
|
with:
|
||||||
run: |
|
binary: "cr"
|
||||||
mkdir -p $GITHUB_WORKSPACE/bin
|
version: "1.4.0"
|
||||||
|
download_url: https://github.com/helm/chart-releaser/releases/download/v${version}/chart-releaser_${version}_linux_amd64.tar.gz
|
||||||
curl -Lo $GITHUB_WORKSPACE/cr.tar.gz https://github.com/helm/chart-releaser/releases/download/v${VERSION}/chart-releaser_${VERSION}_linux_amd64.tar.gz
|
tarball_binary_path: ${binary}
|
||||||
tar -xzf $GITHUB_WORKSPACE/cr.tar.gz -C $GITHUB_WORKSPACE/bin cr
|
smoke_test: ${binary} version
|
||||||
chmod +x $GITHUB_WORKSPACE/bin/cr
|
|
||||||
echo "::add-path::$GITHUB_WORKSPACE/bin"
|
|
||||||
|
|
||||||
- name: Generate index.yaml
|
- name: Generate index.yaml
|
||||||
run: |
|
run: |
|
||||||
mkdir .helm-index
|
mkdir .helm-index
|
||||||
cr index \
|
cr index \
|
||||||
--charts-repo https://apricote.github.io/Listory
|
--package-path charts \
|
||||||
--package-path charts
|
--owner ${GITHUB_REPOSITORY_OWNER} \
|
||||||
--owner owner
|
--git-repo ${GITHUB_REPOSITORY} \
|
||||||
--git-repo Listory
|
--index-path .helm-index/index.yaml \
|
||||||
--index-path .helm-index/index.yaml
|
--push
|
||||||
|
|
||||||
- name: Publish to gh-pages
|
- name: Publish to gh-pages
|
||||||
uses: JamesIves/github-pages-deploy-action@releases/v3
|
uses: JamesIves/github-pages-deploy-action@releases/v3
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue