vieter/.woodpecker/.gitea.yml

34 lines
783 B
YAML
Raw Normal View History

2022-01-22 21:12:30 +00:00
# Yeah so this only works on tags so we'll worry about this later
2022-01-22 20:26:25 +00:00
platform: linux/amd64
2022-01-22 21:12:30 +00:00
branches: main
2022-01-30 20:07:37 +00:00
depends_on:
- build
2022-01-22 20:26:25 +00:00
2022-01-22 20:54:03 +00:00
# We need the entire repo in order for the release names to work
2022-01-22 20:58:04 +00:00
skip_clone: true
2022-01-22 20:54:03 +00:00
2022-01-22 20:26:25 +00:00
pipeline:
prepare:
image: 'chewingbever/vlang:latest'
pull: true
2022-01-22 20:26:25 +00:00
secrets: [ s3_username, s3_password ]
commands:
2022-01-22 22:15:36 +00:00
- mc alias set s3/ https://s3.rustybever.be "$S3_USERNAME" "$S3_PASSWORD"
2022-01-31 23:08:23 +00:00
- mc cp -r "s3/vieter/commits/$CI_COMMIT_SHA" .
2022-01-31 22:39:04 +00:00
when:
event: tag
2022-01-22 20:26:25 +00:00
release:
image: 'plugins/gitea-release'
secrets:
- gitea_release_api_key
settings:
base_url: https://git.rustybever.be
2022-01-31 23:08:23 +00:00
files: ${CI_COMMIT_SHA}/*
2022-01-31 23:17:56 +00:00
checksum:
2022-01-22 20:26:25 +00:00
- md5
- sha256
2022-01-31 22:39:04 +00:00
title: ${CI_COMMIT_TAG}
2022-01-22 20:26:25 +00:00
when:
2022-01-31 22:39:04 +00:00
event: tag