feat: as ssh instead
Some checks failed
continuous-integration/drone/push Build is failing

Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
2023-07-28 20:45:08 +02:00
parent 57cf758a56
commit 467b94fb5a

View File

@@ -61,6 +61,12 @@ steps:
- name: release
image: marcoieni/release-plz:0.3.16
commands:
- set -eu
- eval `ssh-agent`
- mkdir -p ~/.ssh
- echo "$SSH_KEY" | base64 -d > ~/.ssh/id_ed25519
- chmod -R 600 ~/.ssh
- ssh-add
- mkdir -p .cargo
- |
cat <<EOF >> .cargo/config.toml
@@ -68,10 +74,10 @@ steps:
default = "gitea"
[registries.gitea]
index = "https://git.i.kjuulh.io/kjuulh/_cargo-index.git"
index = "git@git.i.kjuulh.io:kjuulh/_cargo-index.git"
#[net]
#git-fetch-with-cli = true
[net]
git-fetch-with-cli = true
EOF
- |
cat <<EOF >> .cargo/credentials.toml
@@ -82,6 +88,8 @@ steps:
environment:
GIT_TOKEN:
from_secret: gitea_token
SSH_KEY:
from_secret: gitea_id_ed25519
when:
branch:
- master