fix artifact uploader

This commit is contained in:
aptalca 2025-03-05 17:03:24 -05:00
parent 083f86abbb
commit 230c52583c
No known key found for this signature in database
GPG Key ID: BE36CFFB9FD85548
8 changed files with 10 additions and 3 deletions

0
.editorconfig Executable file → Normal file
View File

0
.github/CONTRIBUTING.md vendored Executable file → Normal file
View File

0
.github/FUNDING.yml vendored Executable file → Normal file
View File

0
.github/ISSUE_TEMPLATE/config.yml vendored Executable file → Normal file
View File

0
.github/ISSUE_TEMPLATE/issue.bug.yml vendored Executable file → Normal file
View File

0
.github/ISSUE_TEMPLATE/issue.feature.yml vendored Executable file → Normal file
View File

View File

@ -9,6 +9,9 @@ jobs:
publish-binaries:
runs-on: ubuntu-latest
steps:
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Retrieve and upload artifacts
run: |
mkdir -p ./artifacts/amd64 ./artifacts/arm64
@ -22,7 +25,7 @@ jobs:
-H "Content-Type: application/octet-stream" \
"https://uploads.github.com/repos/linuxserver/docker-python/releases/${{ github.event.release.id }}/assets?name=python-amd64.tar.gz" \
--data-binary "@python-amd64.tar.gz"
docker create --name arm64 ghcr.io/linuxserver/python:arm64v8-${{ github.event.release.tag_name }} blah
docker create --name arm64 --platfrom=linux/arm64 ghcr.io/linuxserver/python:arm64v8-${{ github.event.release.tag_name }} blah
docker cp arm64:/usr/local/. ./artifacts/arm64/
tar -czvf python-arm64.tar.gz -C ./artifacts/arm64/ .
echo "**** Uploading arm64 tarball ****"

8
Jenkinsfile vendored
View File

@ -70,7 +70,9 @@ pipeline {
fi
done
fi
docker system prune -f --volumes || : '''
docker system prune -f --volumes || :
docker image prune -af || :
'''
script{
env.EXIT_STATUS = ''
env.LS_RELEASE = sh(
@ -687,7 +689,8 @@ pipeline {
if [[ -n "${containers}" ]]; then
docker stop ${containers}
fi
docker system prune -af --volumes || :
docker system prune -f --volumes || :
docker image prune -af || :
'''
}
}
@ -1034,6 +1037,7 @@ EOF
done
fi
docker system prune -f --volumes || :
docker image prune -af || :
'''
cleanWs()
}