feat(ci): publish releases as package
parent
5a69234877
commit
e46a0e37af
|
@ -1,7 +1,7 @@
|
|||
matrix:
|
||||
PLATFORM:
|
||||
- 'linux/amd64'
|
||||
# - 'linux/arm64'
|
||||
- 'linux/arm64'
|
||||
|
||||
platform: ${PLATFORM}
|
||||
branches: [ main ]
|
||||
|
@ -20,14 +20,14 @@ pipeline:
|
|||
event: tag
|
||||
|
||||
publish:
|
||||
image: 'plugins/gitea-release'
|
||||
image: 'curlimages/curl'
|
||||
secrets:
|
||||
- gitea_release_api_key
|
||||
settings:
|
||||
base_url: https://git.rustybever.be
|
||||
files: target/release/alex-*
|
||||
checksum:
|
||||
- sha256
|
||||
title: ${CI_COMMIT_TAG}
|
||||
- gitea_password
|
||||
commands:
|
||||
- >
|
||||
curl -s --fail
|
||||
--user "Chewing_Bever:$GITEA_PASSWORD"
|
||||
--upload-file target/release/alex
|
||||
https://git.rustybever.be/api/packages/Chewing_Bever/generic/alex/"${CI_COMMIT_TAG}"/alex-"$(echo '${PLATFORM}' | sed 's:/:-:g')"
|
||||
when:
|
||||
event: tag
|
||||
|
|
Loading…
Reference in New Issue