rename gitea -> forgejo [BRAKING Change]

This commit is contained in:
Michael Jerger 2024-02-22 13:05:54 +01:00
parent 209f1bd9ca
commit 2770883473
3 changed files with 6 additions and 8 deletions

View file

@ -16,5 +16,4 @@ sequenceDiagram
j ->> j: generate.sh j ->> j: generate.sh
j ->> j: cp /target/html to website j ->> j: cp /target/html to website
deactivate j deactivate j
``` ```

View file

@ -191,8 +191,8 @@
(defn-spec generate-website-build-secret pred/map-or-seq? (defn-spec generate-website-build-secret pred/map-or-seq?
[config websiteconfig? [config websiteconfig?
auth websiteauth?] auth websiteauth?]
(let [{:keys [gitea-host (let [{:keys [forgejo-host
gitea-repo forgejo-repo
branchname]} config branchname]} config
{:keys [authtoken {:keys [authtoken
username]} auth] username]} auth]
@ -201,13 +201,13 @@
(cm/replace-all-matching-values-by-new-value "TOKEN" (b64/encode authtoken)) (cm/replace-all-matching-values-by-new-value "TOKEN" (b64/encode authtoken))
(cm/replace-all-matching-values-by-new-value "REPOURL" (b64/encode (cm/replace-all-matching-values-by-new-value "REPOURL" (b64/encode
(generate-gitrepourl (generate-gitrepourl
gitea-host forgejo-host
gitea-repo forgejo-repo
username username
branchname))) branchname)))
(cm/replace-all-matching-values-by-new-value "COMMITURL" (b64/encode (cm/replace-all-matching-values-by-new-value "COMMITURL" (b64/encode
(generate-gitcommiturl (generate-gitcommiturl
gitea-host forgejo-host
gitea-repo forgejo-repo
username)))))) username))))))

View file

@ -179,7 +179,6 @@
:GITCOMMITURL "aHR0cHM6Ly9naXRsYWIuZGUvYXBpL3YxL3JlcG9zL3NvbWV1c2VyL3JlcG8vZ2l0L2NvbW1pdHMvSEVBRA=="}} :GITCOMMITURL "aHR0cHM6Ly9naXRsYWIuZGUvYXBpL3YxL3JlcG9zL3NvbWV1c2VyL3JlcG8vZ2l0L2NvbW1pdHMvSEVBRA=="}}
(cut/generate-website-build-secret {:fqdns ["test.de" "test.org" "www.test.de" "www.test.org"], (cut/generate-website-build-secret {:fqdns ["test.de" "test.org" "www.test.de" "www.test.org"],
:forgejo-repo "repo", :forgejo-repo "repo",
:sha256sum-output "123456789ab123cd345de script-file-name.sh",
:issuer "staging", :issuer "staging",
:branchname "main", :branchname "main",
:unique-name "test.io", :unique-name "test.io",