Added static binary upload
ci/woodpecker/push/builder unknown status Details
ci/woodpecker/push/image unknown status Details
ci/woodpecker/push/publish unknown status Details
ci/woodpecker/push/lint Pipeline was successful Details
ci/woodpecker/push/build Pipeline failed Details

pull/52/head
Jef Roosens 2022-01-22 19:01:46 +01:00
parent 8fcec3b18b
commit 0700eb16fb
Signed by: Jef Roosens
GPG Key ID: B580B976584B5F30
1 changed files with 13 additions and 0 deletions

View File

@ -28,3 +28,16 @@ pipeline:
- readelf -d pvieter - readelf -d pvieter
- du -h pvieter - du -h pvieter
- '[ "$(readelf -d pvieter | grep NEEDED | wc -l)" = 0 ]' - '[ "$(readelf -d pvieter | grep NEEDED | wc -l)" = 0 ]'
# This removes so much, it's amazing
- strip -s pvieter
- du -h pvieter
upload:
image: 'alpine:latest'
secrets: [ s3_username, s3_password ]
commands:
# https://min.io/download#/linux
- wget https://dl.min.io/client/mc/release/linux-amd64/mc
- chmod +x mc
- ./mc alias set s3 https://s3.rustybever.be "$S3_USERNAME" "$S3_PASSWORD"
- ./mc cp pvieter "s3/vieter/commits/$CI_COMMIT_SHA/vieter-$(echo '${PLATFORM}' | sed 's:/:-:')"