Skip to content

Commit

Permalink
kustomize not found
Browse files Browse the repository at this point in the history
  • Loading branch information
jananivMS committed May 14, 2020
1 parent c982872 commit 2d03017
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ steps:
targetType: 'inline'
script: |
set -x
mkdir -p $(go env GOPATH)/bin
mkfir -p /usr/local/kubebuilder
mkdir -p $(System.DefaultWorkingDirectory)/bin
mkdir -p /usr/local/kubebuilder
go env
os=$(go env GOOS)
arch=$(go env GOARCH)
Expand All @@ -63,15 +63,15 @@ steps:
export PATH=$PATH:/usr/local/kubebuilder/bin
echo '##vso[task.prependpath]/usr/local/kubebuilder/bin'
# download kustomize
curl -o $(go env GOPATH)/bin/kustomize -sL https://go.kubebuilder.io/kustomize/${os}/${arch}
curl -o $(System.DefaultWorkingDirectory)/bin/kustomize -sL https://go.kubebuilder.io/kustomize/${os}/${arch}
# set permission
chmod a+x $(go env GOPATH)/bin/*
chmod a+x $(go env GOPATH)/bin/kustomize
export PATH=$PATH:$(go env GOPATH)/bin
echo '##vso[task.prependpath]$(go env GOPATH)/bin'
chmod a+x $(System.DefaultWorkingDirectory)/bin/*
chmod a+x $(System.DefaultWorkingDirectory)/bin/kustomize
export PATH=$PATH:$(System.DefaultWorkingDirectory)/bin
echo '##vso[task.prependpath]$(System.DefaultWorkingDirectory)/bin'
which kustomize
kustomize version
cp $(go env GOPATH)/bin/kustomize kustomize
cp $(System.DefaultWorkingDirectory)/bin/kustomize $(System.DefaultWorkingDirectory)/kustomize
go mod download
make install-test-dependencies
workingDirectory: '$(System.DefaultWorkingDirectory)'
Expand Down

0 comments on commit 2d03017

Please sign in to comment.