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:
Kasper Juul Hermansen 2023-07-28 20:45:08 +02:00
parent 57cf758a56
commit 467b94fb5a
Signed by: kjuulh
GPG Key ID: 9AA7BC13CE474394

View File

@ -61,6 +61,12 @@ steps:
- name: release - name: release
image: marcoieni/release-plz:0.3.16 image: marcoieni/release-plz:0.3.16
commands: 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 - mkdir -p .cargo
- | - |
cat <<EOF >> .cargo/config.toml cat <<EOF >> .cargo/config.toml
@ -68,10 +74,10 @@ steps:
default = "gitea" default = "gitea"
[registries.gitea] [registries.gitea]
index = "https://git.i.kjuulh.io/kjuulh/_cargo-index.git" index = "git@git.i.kjuulh.io:kjuulh/_cargo-index.git"
#[net] [net]
#git-fetch-with-cli = true git-fetch-with-cli = true
EOF EOF
- | - |
cat <<EOF >> .cargo/credentials.toml cat <<EOF >> .cargo/credentials.toml
@ -82,6 +88,8 @@ steps:
environment: environment:
GIT_TOKEN: GIT_TOKEN:
from_secret: gitea_token from_secret: gitea_token
SSH_KEY:
from_secret: gitea_id_ed25519
when: when:
branch: branch:
- master - master