mirror of
				https://github.com/kata-containers/kata-containers.git
				synced 2025-10-30 17:03:57 +00:00 
			
		
		
		
	actions: release: Use GH cli instead of hub
hub is now deprecated, which has been causing issues with our release process. Let's move to the GH cli (https://cli.github.com/manual), and unblock this release. **NOTE**: This commit is purposefully not touching anywhere else hub is used, as that would require more time and investigation to do the switch, and right now we just want to unblock the release. Fixes: #8286 Signed-off-by: Fabiano Fidêncio <fabiano.fidencio@intel.com>
This commit is contained in:
		
							
								
								
									
										20
									
								
								.github/workflows/release.yaml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										20
									
								
								.github/workflows/release.yaml
									
									
									
									
										vendored
									
									
								
							| @@ -73,12 +73,6 @@ jobs: | |||||||
|     needs: publish-multi-arch-images |     needs: publish-multi-arch-images | ||||||
|     runs-on: ubuntu-latest |     runs-on: ubuntu-latest | ||||||
|     steps: |     steps: | ||||||
|       - uses: actions/checkout@v3 |  | ||||||
|       - name: install hub |  | ||||||
|         run: | |  | ||||||
|           wget -q -O- https://github.com/mislav/hub/releases/download/v2.14.2/hub-linux-amd64-2.14.2.tgz | \ |  | ||||||
|           tar xz --strip-components=2 --wildcards '*/bin/hub' && sudo mv hub /usr/local/bin/hub |  | ||||||
|  |  | ||||||
|       - name: download-artifacts-amd64 |       - name: download-artifacts-amd64 | ||||||
|         uses: actions/download-artifact@v3 |         uses: actions/download-artifact@v3 | ||||||
|         with: |         with: | ||||||
| @@ -90,7 +84,7 @@ jobs: | |||||||
|           mv kata-static.tar.xz "$GITHUB_WORKSPACE/${tarball}" |           mv kata-static.tar.xz "$GITHUB_WORKSPACE/${tarball}" | ||||||
|           pushd $GITHUB_WORKSPACE |           pushd $GITHUB_WORKSPACE | ||||||
|           echo "uploading asset '${tarball}' for tag: ${tag}" |           echo "uploading asset '${tarball}' for tag: ${tag}" | ||||||
|           GITHUB_TOKEN=${{ secrets.GIT_UPLOAD_TOKEN }} hub release edit -m "" -a "${tarball}" "${tag}" |           GITHUB_TOKEN=${{ secrets.GIT_UPLOAD_TOKEN }} gh release upload "${tag}" "${tarball}" | ||||||
|           popd |           popd | ||||||
|  |  | ||||||
|       - name: download-artifacts-arm64 |       - name: download-artifacts-arm64 | ||||||
| @@ -104,7 +98,7 @@ jobs: | |||||||
|           mv kata-static.tar.xz "$GITHUB_WORKSPACE/${tarball}" |           mv kata-static.tar.xz "$GITHUB_WORKSPACE/${tarball}" | ||||||
|           pushd $GITHUB_WORKSPACE |           pushd $GITHUB_WORKSPACE | ||||||
|           echo "uploading asset '${tarball}' for tag: ${tag}" |           echo "uploading asset '${tarball}' for tag: ${tag}" | ||||||
|           GITHUB_TOKEN=${{ secrets.GIT_UPLOAD_TOKEN }} hub release edit -m "" -a "${tarball}" "${tag}" |           GITHUB_TOKEN=${{ secrets.GIT_UPLOAD_TOKEN }} gh release upload "${tag}" "${tarball}" | ||||||
|           popd |           popd | ||||||
|  |  | ||||||
|       - name: download-artifacts-s390x |       - name: download-artifacts-s390x | ||||||
| @@ -118,7 +112,7 @@ jobs: | |||||||
|           mv kata-static.tar.xz "$GITHUB_WORKSPACE/${tarball}" |           mv kata-static.tar.xz "$GITHUB_WORKSPACE/${tarball}" | ||||||
|           pushd $GITHUB_WORKSPACE |           pushd $GITHUB_WORKSPACE | ||||||
|           echo "uploading asset '${tarball}' for tag: ${tag}" |           echo "uploading asset '${tarball}' for tag: ${tag}" | ||||||
|           GITHUB_TOKEN=${{ secrets.GIT_UPLOAD_TOKEN }} hub release edit -m "" -a "${tarball}" "${tag}" |           GITHUB_TOKEN=${{ secrets.GIT_UPLOAD_TOKEN }} gh release upload "${tag}" "${tarball}" | ||||||
|           popd |           popd | ||||||
|  |  | ||||||
|   upload-versions-yaml: |   upload-versions-yaml: | ||||||
| @@ -133,7 +127,7 @@ jobs: | |||||||
|           pushd $GITHUB_WORKSPACE |           pushd $GITHUB_WORKSPACE | ||||||
|           versions_file="kata-containers-$tag-versions.yaml" |           versions_file="kata-containers-$tag-versions.yaml" | ||||||
|           cp versions.yaml ${versions_file} |           cp versions.yaml ${versions_file} | ||||||
|           hub release edit -m "" -a "${versions_file}" "${tag}" |           gh release upload "${tag}" "${versions_file}" | ||||||
|           popd |           popd | ||||||
|  |  | ||||||
|   upload-cargo-vendored-tarball: |   upload-cargo-vendored-tarball: | ||||||
| @@ -147,7 +141,7 @@ jobs: | |||||||
|           tarball="kata-containers-$tag-vendor.tar.gz" |           tarball="kata-containers-$tag-vendor.tar.gz" | ||||||
|           pushd $GITHUB_WORKSPACE |           pushd $GITHUB_WORKSPACE | ||||||
|           bash -c "tools/packaging/release/generate_vendor.sh ${tarball}" |           bash -c "tools/packaging/release/generate_vendor.sh ${tarball}" | ||||||
|           GITHUB_TOKEN=${{ secrets.GIT_UPLOAD_TOKEN }} hub release edit -m "" -a "${tarball}" "${tag}"  |           GITHUB_TOKEN=${{ secrets.GIT_UPLOAD_TOKEN }} gh release upload "${tag}" "${tarball}" | ||||||
|           popd |           popd | ||||||
|  |  | ||||||
|   upload-libseccomp-tarball: |   upload-libseccomp-tarball: | ||||||
| @@ -174,6 +168,6 @@ jobs: | |||||||
|           # "-m" option should be empty to re-use the existing release title |           # "-m" option should be empty to re-use the existing release title | ||||||
|           # without opening a text editor. |           # without opening a text editor. | ||||||
|           # For the details, check https://hub.github.com/hub-release.1.html. |           # For the details, check https://hub.github.com/hub-release.1.html. | ||||||
|           hub release edit -m "" -a "${tarball}" "${tag}" |           gh release upload "${tag}" "${tarball}" | ||||||
|           hub release edit -m "" -a "${asc}" "${tag}" |           gh release upload "${tag}" "${asc}" | ||||||
|           popd |           popd | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user