diff --git a/.woodpecker/dev.yml b/.woodpecker/build.yml similarity index 67% rename from .woodpecker/dev.yml rename to .woodpecker/build.yml index 4b55373..6490c43 100644 --- a/.woodpecker/dev.yml +++ b/.woodpecker/build.yml @@ -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 diff --git a/.woodpecker/rel.yml b/.woodpecker/rel.yml deleted file mode 100644 index 28b882d..0000000 --- a/.woodpecker/rel.yml +++ /dev/null @@ -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