chore(ci): clean up build pipelines
parent
8d8aef8111
commit
d3652f801c
|
@ -3,8 +3,6 @@ matrix:
|
||||||
- 'linux/amd64'
|
- 'linux/amd64'
|
||||||
|
|
||||||
platform: ${PLATFORM}
|
platform: ${PLATFORM}
|
||||||
branches:
|
|
||||||
exclude: [ main ]
|
|
||||||
|
|
||||||
pipeline:
|
pipeline:
|
||||||
build-lander:
|
build-lander:
|
||||||
|
@ -30,8 +28,9 @@ pipeline:
|
||||||
- du -h landerctl/build/landerctl
|
- du -h landerctl/build/landerctl
|
||||||
- '[ "$(readelf -d landerctl/build/landerctl | grep NEEDED | wc -l)" = 0 ]'
|
- '[ "$(readelf -d landerctl/build/landerctl | grep NEEDED | wc -l)" = 0 ]'
|
||||||
|
|
||||||
upload:
|
publish-dev:
|
||||||
image: 'alpine:3.18.0'
|
image: 'alpine:3.18.0'
|
||||||
|
group: publish
|
||||||
commands:
|
commands:
|
||||||
- apk add --no-cache minio-client
|
- apk add --no-cache minio-client
|
||||||
- mcli alias set rb 'https://s3.rustybever.be' "$MINIO_ACCESS_KEY" "$MINIO_SECRET_KEY"
|
- mcli alias set rb 'https://s3.rustybever.be' "$MINIO_ACCESS_KEY" "$MINIO_SECRET_KEY"
|
||||||
|
@ -39,3 +38,20 @@ pipeline:
|
||||||
secrets:
|
secrets:
|
||||||
- minio_access_key
|
- minio_access_key
|
||||||
- minio_secret_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
|
|
@ -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
|
|
Loading…
Reference in New Issue