tmpls @main -
refs -
log -
-
https://git.jolheiser.com/tmpls.git
tmpl templates
Update to new format
Signed-off-by: jolheiser <john.olheiser@gmail.com>
Signature
-----BEGIN PGP SIGNATURE-----
iQIzBAABCAAdFiEEgqEQpE3xoo1QwJO/uFOtpdp7v3oFAmKo2yAACgkQuFOtpdp7
v3qWaxAAjs7/6xSDrnBYhmb2d60V/sebSV8TQTwyW5XsRAUDbh9dZa/0iM+G/ePO
y26BVQssLMXUOH1WLSguV5Z7X4hMD7jyuQdGrZavOeJh1DT79AKRqN1lLoJrpDby
KzeBDxViqFVFBVXpxycJaoFgcYJXPV8Ccbgtmppw6O1N6GkeZ+RIH46FD+2j1Opr
mQIugUbt15DbtCranVnLqWXg3OL+L+SJ4Y+SDj8I2cbZUXi+hHoUv8KcfH54fz7H
q4D2vmXRL6Lx8Q1+Kw9Da7gzlpRNLdBXOKEu8j1cJa8kdR8u4/ECcJKU2o+7F8P5
XymgN1u1qwIIf3PNIHJ9VpQIg1WkPgPIQ+zmIk94F+9I2R7ANsme6KUHrGj8Us3B
3VQVWI6PccLKB+ZTEXz7xppuWbFaWapJ6vkvr+Jdf2ZBf9Eq8PsG2JqpWfow+n3W
aYyYYt6xuCnTH6YUNsMNJvHvKB8Y6vpoz20IeA5hO6lhTSg9UN1SekrTi95wV0t8
GbtS3ByyCGZwhFKddIHD78c3ODUK4iM86aDBeMGYN/+M8ctDlZksNlOMzZfH/Kq1
TM70YBYyv7DuQ/i85RxinzrCLYdkeZ7vFl++/ex2a/rtxfYv4PRrBO03mqKyRn9j
R3Dd8cezEbPZgRCwKlXttIHooHkmslFokffF5Zjw50vrVCCU0RE=
=Zcl9
-----END PGP SIGNATURE-----
6 changed files, 23 additions(+), 24 deletions(-)
diff --git a/LICENSE b/LICENSE
index c46b0cae6efdc37514910362220f24c806d21ad9..ec2045ebbe508dc6177b8d5ccfbf7b98d1a2cc6c 100644
--- a/LICENSE
+++ b/LICENSE
@@ -1,4 +1,5 @@
Copyright (c) 2020 John Olheiser
+furnished to do so, subject to the following conditions:
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
diff --git a/README.md b/README.md
index 4b65cbd7f473a3f060a1d9842b4d0d166b846563..a1b3f551afd8609fbd790a600fed2111d6238c28 100644
--- a/README.md
+++ b/README.md
@@ -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
diff --git a/template.toml b/template.toml
deleted file mode 100644
index 4e2ac7e924e2722dca55f31ba1758e1ffb340bce..0000000000000000000000000000000000000000
--- a/template.toml
+++ /dev/null
@@ -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"]
\ No newline at end of file
diff --git a/template/.goreleaser.yaml b/template/.goreleaser.yaml
index 83121c610c50d1c03240897d154b8d4cf54a16f7..8dbbf9dc53ce7e5bce14e043601bb77d01583f25 100644
--- a/template/.goreleaser.yaml
+++ b/template/.goreleaser.yaml
@@ -19,10 +19,10 @@ name_template: 'checksums.txt'
release:
gitea:
- env:
-builds:
+ - windows
name: {{gitea_repo}}
gitea_urls:
- env:
- goos:
+ - darwin
- env:
- - linux
+ ldflags:
diff --git a/template/.woodpecker/goreleaser.yml b/template/.woodpecker/goreleaser.yml
index 589d07c397bdd8323845e01e4dfefd2d7ba89ff6..2b4d558b1f725a01dc08e0632994e2e0613efb6c 100644
--- a/template/.woodpecker/goreleaser.yml
+++ b/template/.woodpecker/goreleaser.yml
@@ -33,7 +33,7 @@ prune:
image: jolheiser/drone-gitea-prune
settings:
git:
- tags: true
+ compliance:
token:
from_secret: gitea_token
when:
diff --git a/tmpl.yaml b/tmpl.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..7f63558243e8523109c48492cafad7868d7da25a
--- /dev/null
+++ b/tmpl.yaml
@@ -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
\ No newline at end of file