mirror of
https://github.com/linuxserver/docker-python.git
synced 2026-02-19 17:24:19 +08:00
fix artifact uploader
This commit is contained in:
parent
083f86abbb
commit
230c52583c
0
.editorconfig
Executable file → Normal file
0
.editorconfig
Executable file → Normal file
0
.github/CONTRIBUTING.md
vendored
Executable file → Normal file
0
.github/CONTRIBUTING.md
vendored
Executable file → Normal file
0
.github/FUNDING.yml
vendored
Executable file → Normal file
0
.github/FUNDING.yml
vendored
Executable file → Normal file
0
.github/ISSUE_TEMPLATE/config.yml
vendored
Executable file → Normal file
0
.github/ISSUE_TEMPLATE/config.yml
vendored
Executable file → Normal file
0
.github/ISSUE_TEMPLATE/issue.bug.yml
vendored
Executable file → Normal file
0
.github/ISSUE_TEMPLATE/issue.bug.yml
vendored
Executable file → Normal file
0
.github/ISSUE_TEMPLATE/issue.feature.yml
vendored
Executable file → Normal file
0
.github/ISSUE_TEMPLATE/issue.feature.yml
vendored
Executable file → Normal file
5
.github/workflows/publish_binaries.yml
vendored
5
.github/workflows/publish_binaries.yml
vendored
@ -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
8
Jenkinsfile
vendored
@ -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()
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user