kind: pipeline name: default type: docker steps: - name: build ci image: rustlang/rust:nightly volumes: - name: ci path: /mnt/ci environment: PKG_CONFIG_SYSROOT_DIR: "/" CI_PREFIX: "/mnt/ci" commands: - set -e - apt update - apt install musl-tools pkg-config libssl-dev openssl build-essential musl-dev -y - rustup target add x86_64-unknown-linux-musl - cargo build --target=x86_64-unknown-linux-musl -p ci --bin ci - mv target/x86_64-unknown-linux-musl/debug/ci "$CI_PREFIX/ci" - name: load_secret image: debian:buster-slim volumes: - name: ssh path: /root/.ssh/ environment: SSH_KEY: from_secret: gitea_id_ed25519 commands: - mkdir -p $HOME/.ssh/ - echo "$SSH_KEY" | base64 -d > $HOME/.ssh/id_ed25519 - chmod -R 600 ~/.ssh - | cat >$HOME/.ssh/config <