holonet
- 19 commits
- 1 branch
- 0 tags
- updated
fix: update gitea mirror config
SignedGitea couldn't verify the signature.
Showing 1 changed file with 13 additions and 2 deletions.
.tangled/workflows/mirror.yaml
+13 −2
@@ -24,5 +24,16 @@ steps:24242525 - name: "Mirror to Gitea"2626 command: |27 set -euo pipefail28 git push --force "https://daniel-daum:${GITEA_MIRROR_TOKEN}@git.danieldaum.net/daniel-daum/saturn.git" refs/remotes/origin/main:refs/heads/main27 set -euo pipefail28 29 # ssh refuses to run without a passwd entry, and nixery images have none30 mkdir -p /etc31 [ -e /etc/passwd ] || echo "root:x:0:0:root:${HOME}:/bin/bash" > /etc/passwd32 33 mkdir -p "${HOME}/.ssh"34 printf '%s\n' "${GITEA_MIRROR_KEY}" > "${HOME}/.ssh/gitea"35 chmod 600 "${HOME}/.ssh/gitea"36 ssh-keyscan -p 2222 git-ssh.danieldaum.net > "${HOME}/.ssh/known_hosts"37 38 export GIT_SSH_COMMAND="ssh -i ${HOME}/.ssh/gitea -o IdentitiesOnly=yes -o UserKnownHostsFile=${HOME}/.ssh/known_hosts"39 git push --force "ssh://git@git-ssh.danieldaum.net:2222/daniel-daum/${TANGLED_REPO_NAME}.git" refs/remotes/origin/main:refs/heads/main