Added release as conditional step

This commit is contained in:
Guillem Borrell Nogueras 2022-11-21 00:05:52 +01:00
parent 4d91571797
commit d6948e5382

View file

@ -1,5 +1,9 @@
pipeline: pipeline:
build: release:
image: rust:1-buster image: rust:1-buster
when:
event: tag
secrets: [ gitea_api_key ]
commands: commands:
- cargo install --path . - cargo build --release
- curl --user guillem:$GITEA_API_KEY https://git.guillemborrell.es/api/packages/guillem/generic/dr/$CI_COMMIT_TAG/dr