parent
1e67b05f62
commit
d8b5196d4f
2
LICENSE
2
LICENSE
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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"]
|
|
|
@ -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}}
|
||||||
|
|
|
@ -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:
|
||||||
|
|
|
@ -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
|
Loading…
Reference in New Issue