Update to new format

Signed-off-by: jolheiser <john.olheiser@gmail.com>
goreleaser
jolheiser 2022-06-14 14:01:52 -05:00
parent 1e67b05f62
commit d8b5196d4f
Signed by: jolheiser
GPG Key ID: B853ADA5DA7BBF7A
6 changed files with 23 additions and 25 deletions

View File

@ -1,4 +1,4 @@
Copyright (c) 2020 John Olheiser Copyright (c) 2022 John Olheiser
Permission is hereby granted, free of charge, to any person obtaining a copy Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal of this software and associated documentation files (the "Software"), to deal

View File

@ -1,6 +1,6 @@
# tmpl templates # goreleaser
Check out the various branches for some basic examples of templates. A template to generate `goreleaser` config and accompanying Woodpecker pipeline.
## License ## License

View File

@ -1,18 +0,0 @@
[gitea_url]
default = "https://git.jojodev.com"
[gitea_user]
[gitea_repo]
[name]
default = "${TMPL_PROMPT_GITEA_REPO}"
depends_on = ["gitea_repo"]
[module]
default = "${TMPL_PROMPT_GITEA_URL}/${TMPL_PROMPT_GITEA_USER}/${TMPL_PROMPT_GITEA_REPO}"
depends_on = ["gitea_url", "gitea_user", "gitea_repo"]
[version_package]
default = "${TMPL_PROMPT_MODULE}/cmd"
depends_on = ["module"]

View File

@ -18,8 +18,8 @@ checksum:
name_template: 'checksums.txt' name_template: 'checksums.txt'
release: release:
gitea: gitea:
owner: jolheiser owner: {{gitea_user}}
name: {{gitea_repo}} name: {{gitea_repo}}
gitea_urls: gitea_urls:
api: {{gitea_url}}/api/v1/ api: https://{{gitea_url}}/api/v1/
download: {{gitea_url}} download: https://{{gitea_url}}

View File

@ -32,7 +32,7 @@ pipeline:
prune: prune:
image: jolheiser/drone-gitea-prune image: jolheiser/drone-gitea-prune
settings: settings:
base: {{gitea_url}} base: https://{{gitea_url}}
token: token:
from_secret: gitea_token from_secret: gitea_token
when: when:

16
tmpl.yaml 100644
View File

@ -0,0 +1,16 @@
prompts:
- id: gitea_domain
label: Gitea Domain
default: git.jojodev.com
help: No protocol or trailing slash
- id: gitea_user
label: Gitea User
- id: gitea_repo
label: Gitea Repo
- id: module
label: Module
default: ${TMPL_PROMPT_GITEA_DOMAIN}/${TMPL_PROMPT_GITEA_USER}/${TMPL_PROMPT_GITEA_REPO}
- id: version_package
label: Version Package
help: The package where the `Version` variable is
default: ${TMPL_PROMPT_MODULE}/cmd