2022-05-05 09:35:19 +02:00
|
|
|
platform: 'linux/amd64'
|
|
|
|
branches: [ 'main' ]
|
2022-01-30 21:07:37 +01:00
|
|
|
depends_on:
|
|
|
|
- build
|
2022-01-22 21:26:25 +01:00
|
|
|
|
2022-01-22 21:54:03 +01:00
|
|
|
# We need the entire repo in order for the release names to work
|
2022-01-22 21:58:04 +01:00
|
|
|
skip_clone: true
|
2022-01-22 21:54:03 +01:00
|
|
|
|
2022-01-22 21:26:25 +01:00
|
|
|
pipeline:
|
|
|
|
prepare:
|
|
|
|
image: 'chewingbever/vlang:latest'
|
2022-01-22 22:37:27 +01:00
|
|
|
pull: true
|
2022-01-22 21:26:25 +01:00
|
|
|
secrets: [ s3_username, s3_password ]
|
|
|
|
commands:
|
2022-01-22 23:15:36 +01:00
|
|
|
- mc alias set s3/ https://s3.rustybever.be "$S3_USERNAME" "$S3_PASSWORD"
|
2022-02-01 00:08:23 +01:00
|
|
|
- mc cp -r "s3/vieter/commits/$CI_COMMIT_SHA" .
|
2022-06-10 08:39:10 +02:00
|
|
|
- mv "$CI_COMMIT_SHA"/vieter-* .
|
2022-01-31 23:39:04 +01:00
|
|
|
when:
|
|
|
|
event: tag
|
2022-01-22 21:26:25 +01:00
|
|
|
|
|
|
|
release:
|
|
|
|
image: 'plugins/gitea-release'
|
|
|
|
secrets:
|
|
|
|
- gitea_release_api_key
|
|
|
|
settings:
|
|
|
|
base_url: https://git.rustybever.be
|
2022-06-10 08:39:10 +02:00
|
|
|
files: vieter-*
|
2022-02-01 00:17:56 +01:00
|
|
|
checksum:
|
2022-01-22 21:26:25 +01:00
|
|
|
- sha256
|
2022-01-31 23:39:04 +01:00
|
|
|
title: ${CI_COMMIT_TAG}
|
2022-01-22 21:26:25 +01:00
|
|
|
when:
|
2022-01-31 23:39:04 +01:00
|
|
|
event: tag
|