chore(ci): clean up build pipelines
ci/woodpecker/push/build Pipeline was successful Details
ci/woodpecker/push/docker Pipeline was successful Details

release/0.2.0
Jef Roosens 2023-11-17 14:35:28 +01:00
parent 8d8aef8111
commit d3652f801c
Signed by: Jef Roosens
GPG Key ID: B75D4F293C7052DB
2 changed files with 19 additions and 34 deletions

View File

@ -3,8 +3,6 @@ matrix:
- 'linux/amd64'
platform: ${PLATFORM}
branches:
exclude: [ main ]
pipeline:
build-lander:
@ -30,8 +28,9 @@ pipeline:
- du -h landerctl/build/landerctl
- '[ "$(readelf -d landerctl/build/landerctl | grep NEEDED | wc -l)" = 0 ]'
upload:
publish-dev:
image: 'alpine:3.18.0'
group: publish
commands:
- apk add --no-cache minio-client
- mcli alias set rb 'https://s3.rustybever.be' "$MINIO_ACCESS_KEY" "$MINIO_SECRET_KEY"
@ -39,3 +38,20 @@ pipeline:
secrets:
- minio_access_key
- minio_secret_key
publish-rel:
image: 'alpine:3.18.0'
group: publish
commands:
- >
curl -s --fail
--user "Chewing_Bever:$GITEA_PASSWORD"
--upload-file build/lander
https://git.rustybever.be/api/packages/Chewing_Bever/generic/lander/"${CI_COMMIT_TAG}"/lander-"$(echo '${PLATFORM}' | sed 's:/:-:g')"
- >
curl -s --fail
--user "Chewing_Bever:$GITEA_PASSWORD"
--upload-file landerctl/build/landerctl
https://git.rustybever.be/api/packages/Chewing_Bever/generic/lander/"${CI_COMMIT_TAG}"/landerctl-"$(echo '${PLATFORM}' | sed 's:/:-:g')"
when:
event: tag

View File

@ -1,31 +0,0 @@
matrix:
PLATFORM:
- 'linux/amd64'
- 'linux/arm64'
platform: ${PLATFORM}
branches: [ main ]
pipeline:
build:
image: 'alpine:3.18.0'
commands:
- apk add --update --no-cache build-base make
- make CFLAGS='-O3 -static' LDFLAGS='-flto'
- strip build/lander
- '[ "$(readelf -d build/lander | grep NEEDED | wc -l)" = 0 ]'
when:
event: tag
publish:
image: 'curlimages/curl'
secrets:
- gitea_password
commands:
- >
curl -s --fail
--user "Chewing_Bever:$GITEA_PASSWORD"
--upload-file build/lander
https://git.rustybever.be/api/packages/Chewing_Bever/generic/lander/"${CI_COMMIT_TAG}"/lander-"$(echo '${PLATFORM}' | sed 's:/:-:g')"
when:
event: tag