Skip to content

Commit

Permalink
Merge pull request #1009 from ErikJiang/fix_upload_asserts
Browse files Browse the repository at this point in the history
fix upload assets greater than 2 GiB issue
  • Loading branch information
ErikJiang authored Nov 17, 2023
2 parents 7fc34b1 + 3b012e0 commit 65c960f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/call-build-imgs-for-spray.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,12 @@ jobs:
- name: Checks if a image with the same tag exists
id: check
run: |
echo "need_rebuild=true" >>$GITHUB_OUTPUT
commit_short_sha=${{ needs.output-variable.outputs.image_tag_short_sha }}
ghcr_token=$(curl https://ghcr.io/token\?scope\="repository:kubean-io/kubespray:pull" | jq '.token' | tr -d '"')
curl -H "Authorization: Bearer ${ghcr_token}" https://ghcr.io/v2/kubean-io/kubespray/tags/list | jq '.tags' | tr -d '[",]' > tags
ghcr_token=$(curl https://ghcr.io/token\?scope\="repository:${{ inputs.REPO }}/kubespray:pull" | jq '.token' | tr -d '"')
curl -H "Authorization: Bearer ${ghcr_token}" https://ghcr.io/v2/${{ inputs.REPO }}/kubespray/tags/list | jq '.tags' | tr -d '[",]' > tags
if grep -q ${commit_short_sha} tags; then
echo "need_rebuild=false" >>$GITHUB_OUTPUT
else
echo "need_rebuild=true" >>$GITHUB_OUTPUT
fi
- uses: actions/checkout@v3
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/call-offline-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- name: Set kubespray version env
run: |
echo "SPRAY_VERSION=$(yq ".kubespray_version" version.yml)" >> ${GITHUB_ENV}
echo "KUBE_VERSION=$(yq ".kubernetes_version" version.yml)" >> ${GITHUB_ENV}
echo "KUBE_VERSION=$(yq ".kubernetes_version" version.yml)" >> ${GITHUB_ENV}
- name: Git clone kubespray repo
uses: actions/checkout@v3
Expand Down Expand Up @@ -84,6 +84,9 @@ jobs:
mv images.list images-${ARCH}.list
cd ../../
tree ${KUBEAN_TAG}/
echo -e "\noutput files size:\n"
ls -lh ${KUBEAN_TAG}/amd64/
ls -lh ${KUBEAN_TAG}/arm64/
- name: Release and upload packages
if: startsWith(github.ref, 'refs/tags/')
Expand Down
5 changes: 1 addition & 4 deletions artifacts/generate_offline_package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -140,10 +140,7 @@ function create_images() {
local images_list_content
images_list_content=$(cat "${CURRENT_DIR}/kubespray/contrib/offline/temp/images.list")

if [ ! -d "offline-images" ]; then
echo "create offline-images directory."
mkdir offline-images
fi
rm -rf offline-images && mkdir offline-images

while read -r image_name; do
echo "download image $image_name to local"
Expand Down

0 comments on commit 65c960f

Please sign in to comment.