Skip to content

Commit

Permalink
Merge pull request #486 from alexander-demicev/fixpluginupdate
Browse files Browse the repository at this point in the history
🐛 Use absolute path in update scripts
  • Loading branch information
k8s-ci-robot authored Apr 9, 2024
2 parents ac43057 + ec7a7aa commit d72fb20
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 3 additions & 1 deletion hack/update-helm-repo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
set -o errexit
set -o pipefail

REPO_ROOT=$(dirname "${BASH_SOURCE}")/..
# Resolve the absolute path of the directory containing the script
SCRIPT_DIR=$(realpath "$(dirname "${BASH_SOURCE[0]}")")
REPO_ROOT="$SCRIPT_DIR/.."

cd $REPO_ROOT/hack/chart-update; go run . -release-tag=$1; cd -
6 changes: 4 additions & 2 deletions hack/update-plugin-yaml.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
set -o errexit
set -o pipefail

REPO_ROOT=$(dirname "${BASH_SOURCE}")/..
# Resolve the absolute path of the directory containing the script
SCRIPT_DIR=$(realpath "$(dirname "${BASH_SOURCE[0]}")")
REPO_ROOT="$SCRIPT_DIR/.."

docker run --rm -v $REPO_ROOT:/home/app ghcr.io/rajatjindal/krew-release-bot:v0.0.46 krew-release-bot template --tag $1 --template-file .krew.yaml > $REPO_ROOT/plugins/clusterctl-operator.yaml
docker run --rm -v "$REPO_ROOT":/home/app ghcr.io/rajatjindal/krew-release-bot:v0.0.46 krew-release-bot template --tag "$1" --template-file .krew.yaml > "$REPO_ROOT"/plugins/clusterctl-operator.yaml

0 comments on commit d72fb20

Please sign in to comment.