Skip to content

Commit

Permalink
fix: issues with goreleaser deprecations and script path
Browse files Browse the repository at this point in the history
  • Loading branch information
C123R committed Apr 9, 2020
1 parent c9b3126 commit bc5f047
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 17 deletions.
18 changes: 9 additions & 9 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@ builds:
goarch:
- amd64
- arm64
archive:
format: tar.gz
files:
- README.md
- LICENSE
- plugin.yaml
- scripts/install_plugin.sh
- scripts/helm-blob.sh
name_template: "{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}_{{ .Tag }}"
archives:
- format: tar.gz
files:
- README.md
- LICENSE
- plugin.yaml
- scripts/install-plugin.sh
- scripts/proxy.sh
name_template: "{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}_{{ .Tag }}"
checksum:
name_template: "checksums.txt"
snapshot:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# helm-blob [![Build Status](https://travis-ci.org/C123R/helm-blob.svg?branch=master)](https://travis-ci.org/C123R/helm-blob)
# helm-blob [![Build Status](https://travis-ci.com/C123R/helm-blob.svg?token=9FxxpxQR16mxxejVyCbA&branch=master)](https://travis-ci.com/C123R/helm-blob)

`helm-blob` plugin allows you to manage helm repositories on the blob storage like Azure Blob, GCS, S3, etc.

Expand Down
4 changes: 2 additions & 2 deletions plugin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ description: |-
Manage chart repositories on Blob Storage(Azure Blob, GCS, S3).
command: "$HELM_PLUGIN_DIR/bin/helm-blob"
hooks:
install: "cd $HELM_PLUGIN_DIR; scripts/install_plugin.sh"
update: "cd $HELM_PLUGIN_DIR; scripts/install_plugin.sh"
install: "cd $HELM_PLUGIN_DIR; scripts/install-plugin.sh"
update: "cd $HELM_PLUGIN_DIR; scripts/install-plugin.sh"
downloaders:
- command: "/bin/proxy.sh"
protocols:
Expand Down
10 changes: 5 additions & 5 deletions scripts/install-plugin.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ echo "Downloading and installing helm-blob v${version} ..."
# Downloding binary from github
url=""
if [ "$(uname)" = "Darwin" ]; then
url="https://github.com/C123R/helm-blob/releases/download/v${version}/helm-blob_darwin_amd64_${version}.tar.gz"
url="https://github.com/C123R/helm-blob/releases/download/v${version}/helm-blob_darwin_amd64_v${version}.tar.gz"
elif [ "$(uname)" = "Linux" ]; then
if [ "$(uname -m)" = "aarch64" ] || [ "$(uname -m)" = "arm64" ]; then
url="https://github.com/C123R/helm-blob/releases/download/v${version}/helm-blob_linux_arm64_${version}.tar.gz"
url="https://github.com/C123R/helm-blob/releases/download/v${version}/helm-blob_linux_arm64_v${version}.tar.gz"
else
url="https://github.com/C123R/helm-blob/releases/download/v${version}/helm-blob__linux_amd64_${version}.tar.gz"
url="https://github.com/C123R/helm-blob/releases/download/v${version}/helm-blob__linux_amd64_v${version}.tar.gz"
fi
else
url="https://github.com/C123R/helm-blob/releases/download/v${version}/helm-blob_windows_amd64_${version}.tar.gz"
url="https://github.com/C123R/helm-blob/releases/download/v${version}/helm-blob_windows_amd64_v${version}.tar.gz"
fi

echo "$url"
Expand All @@ -39,7 +39,7 @@ tar xzf "releases/v${version}.tar.gz" -C "releases/v${version}"
mv "releases/v${version}/helm-blob" "bin/helm-blob" ||
mv "releases/v${version}/helm-blob.exe" "bin/helm-blob"

mv "releases/v${version}/scripts/helm-blob.sh" .
mv "releases/v${version}/scripts/proxy.sh" .
mv "releases/v${version}/plugin.yaml" .
mv "releases/v${version}/README.md" .
mv "releases/v${version}/LICENSE" .
Expand Down
Empty file modified scripts/proxy.sh
100644 → 100755
Empty file.

0 comments on commit bc5f047

Please sign in to comment.