Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
parent
57cf758a56
commit
467b94fb5a
14
.drone.yml
14
.drone.yml
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user