feat(ci): add release config
ci/woodpecker/push/release unknown status Details
ci/woodpecker/push/lint Pipeline was successful Details
ci/woodpecker/push/clippy Pipeline was successful Details
ci/woodpecker/push/build Pipeline was successful Details

signal-handling
Jef Roosens 2023-06-05 10:32:50 +02:00
parent bef9698fc1
commit 3782d3af2e
Signed by: Jef Roosens
GPG Key ID: B75D4F293C7052DB
1 changed files with 33 additions and 0 deletions

View File

@ -0,0 +1,33 @@
matrix:
PLATFORM:
- 'linux/amd64'
# - 'linux/arm64'
platform: $PLATFORM
branches: [ main ]
pipeline:
build:
image: 'rust:1.70-alpine3.18'
commands:
- apk add --no-cache build-base
- cargo build --release --verbose
# Ensure the release binary is also statically compiled
- '[ "$(readelf -d target/release/alex | grep NEEDED | wc -l)" = 0 ]'
- du -h target/release/alex
- mv target/release/alex target/release/alex-$(echo '${PLATFORM}' | sed 's:/:-:g')"
when:
event: tag
publish:
image: 'plugins/gitea-release'
secrets:
- gitea_release_api_key
settings:
base_url: https://git.rustybever.be
files: target/release/alex-*
checksum:
- sha256
title: ${CI_COMMIT_TAG}
when:
event: tag