File tree 3 files changed +9
-15
lines changed
3 files changed +9
-15
lines changed Original file line number Diff line number Diff line change 48
48
out/envtest-*.tar.gz
49
49
out/envtest-*.tar.gz.sha512
50
50
fail_on_unmatched_files : true
51
- - name : Create Pull Request
52
- uses : peter-evans/create-pull-request@5e914681df9dc83aa4e4905692ca88beb2f9e91f # tag=v7.0.5
53
- with :
54
- commit-message : Promote envtest release for Kubernetes ${{ env.KUBERNETES_VERSION }}
55
- title : " :seedling: Promotion of envtest release for Kubernetes ${{ env.KUBERNETES_VERSION }}"
56
- body : |
57
- This PR promotes the envtest release for Kubernetes ${{ env.KUBERNETES_VERSION }}.
58
- branch : promote-envtest-${{ env.KUBERNETES_VERSION }}
59
- add-paths : |
60
- envtest-releases.yaml
Original file line number Diff line number Diff line change @@ -138,7 +138,6 @@ release-envtest: clean-release ## Build the envtest binaries by operating system
138
138
OS=darwin ARCH=amd64 $(MAKE ) release-envtest-docker-build
139
139
OS=darwin ARCH=arm64 $(MAKE ) release-envtest-docker-build
140
140
OS=windows ARCH=amd64 $(MAKE ) release-envtest-docker-build
141
- ./hack/envtest/update-releases.sh
142
141
143
142
.PHONY : release-envtest-docker-build
144
143
release-envtest-docker-build : $(RELEASE_DIR ) # # Build the envtest binaries.
Original file line number Diff line number Diff line change 33
33
# Add the newly built Kubernetes version to the releases.yaml file with yq as an object key under releases
34
34
yq eval " .releases += {\" ${KUBERNETES_VERSION} \" : {}}" -i " ${ROOT} " /envtest-releases.yaml
35
35
36
- for file in " ${ROOT} " /out/* .tar.gz; do
37
- file_name=$( basename " ${file} " )
38
- file_hash=$( awk ' { print $1 }' < " ${file} .sha512" )
39
- self_link=https://github.com/kubernetes-sigs/controller-tools/releases/download/envtest-${KUBERNETES_VERSION} /${file_name}
36
+ sha_files=$( curl -L \
37
+ -H " Accept: application/vnd.github+json" \
38
+ -H " X-GitHub-Api-Version: 2022-11-28" \
39
+ https://api.github.com/repos/kubernetes-sigs/controller-tools/releases/tags/envtest-${KUBERNETES_VERSION} |
40
+ jq ' .assets[] | select(.name | contains("sha512")) | .name' -r)
40
41
42
+ for sha_file in ${sha_files} ; do
43
+ file_name=${sha_file% " .sha512" }
44
+ file_hash=$( curl -L https://github.com/kubernetes-sigs/controller-tools/releases/download/envtest-${KUBERNETES_VERSION} /${sha_file} | awk ' { print $1 }' )
45
+ self_link=https://github.com/kubernetes-sigs/controller-tools/releases/download/envtest-${KUBERNETES_VERSION} /${file_name}
41
46
yq eval \
42
47
" .releases[\" ${KUBERNETES_VERSION} \" ] += {\" ${file_name} \" : {\" hash\" : \" ${file_hash} \" , \" selfLink\" : \" ${self_link} \" }}" \
43
48
-i " ${ROOT} " /envtest-releases.yaml
You can’t perform that action at this time.
0 commit comments