forked from vieter-v/vieter
chore(ci): refactor ci configs a bit
This commit is contained in:
parent
95d32e2d51
commit
847d77b2bc
10 changed files with 28 additions and 10 deletions
|
|
@ -1,32 +0,0 @@
|
|||
platform: 'linux/amd64'
|
||||
branches: [ 'main' ]
|
||||
depends_on:
|
||||
- build
|
||||
|
||||
# We need the entire repo in order for the release names to work
|
||||
skip_clone: true
|
||||
|
||||
pipeline:
|
||||
prepare:
|
||||
image: 'chewingbever/vlang:0.3'
|
||||
pull: true
|
||||
secrets: [ s3_username, s3_password ]
|
||||
commands:
|
||||
- mc alias set s3/ https://s3.rustybever.be "$S3_USERNAME" "$S3_PASSWORD"
|
||||
- mc cp -r "s3/vieter/commits/$CI_COMMIT_SHA" .
|
||||
- mv "$CI_COMMIT_SHA"/vieter-* .
|
||||
when:
|
||||
event: tag
|
||||
|
||||
release:
|
||||
image: 'plugins/gitea-release'
|
||||
secrets:
|
||||
- gitea_release_api_key
|
||||
settings:
|
||||
base_url: https://git.rustybever.be
|
||||
files: vieter-*
|
||||
checksum:
|
||||
- sha256
|
||||
title: ${CI_COMMIT_TAG}
|
||||
when:
|
||||
event: tag
|
||||
Loading…
Add table
Add a link
Reference in a new issue