Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
parent
43780b28cb
commit
6b83d44777
15
.drone.yml
15
.drone.yml
@ -35,20 +35,23 @@ steps:
|
|||||||
from_secret: gitea_id_ed25519
|
from_secret: gitea_id_ed25519
|
||||||
commands:
|
commands:
|
||||||
- set -eu
|
- set -eu
|
||||||
- apt update && apt install -y libssl-dev pkg-config openssl musl-tools
|
- apt update && apt install -y libssl-dev pkg-config openssl # musl-tools
|
||||||
- eval `ssh-agent`
|
- eval `ssh-agent`
|
||||||
- mkdir -p ~/.ssh
|
- mkdir -p ~/.ssh
|
||||||
- echo "$SSH_KEY" | base64 -d > ~/.ssh/id_ed25519
|
- echo "$SSH_KEY" | base64 -d > ~/.ssh/id_ed25519
|
||||||
- chmod -R 600 ~/.ssh
|
- chmod -R 600 ~/.ssh
|
||||||
- ssh-add
|
- ssh-add
|
||||||
- echo "$DOCKER_PASSWORD" | docker login --password-stdin --username="$DOCKER_USERNAME" docker.io
|
- echo "$DOCKER_PASSWORD" | docker login --password-stdin --username="$DOCKER_USERNAME" docker.io
|
||||||
- rustup target add x86_64-unknown-linux-musl
|
#- rustup target add x86_64-unknown-linux-musl
|
||||||
- cd ci || exit 1
|
- cd ci || exit 1
|
||||||
- cargo build --target=x86_64-unknown-linux-musl
|
- cargo build
|
||||||
- cd - || exit 1
|
- cd - || exit 1
|
||||||
- sha1sum ci/target/x86_64-unknown-linux-musl/debug/ci
|
# - sha1sum ci/target/x86_64-unknown-linux-musl/debug/ci
|
||||||
- ldd ci/target/x86_64-unknown-linux-musl/debug/ci
|
# - ldd ci/target/x86_64-unknown-linux-musl/debug/ci
|
||||||
- "./ci/target/x86_64-unknown-linux-musl/debug/ci"
|
# - "./ci/target/x86_64-unknown-linux-musl/debug/ci"
|
||||||
|
- sha1sum ci/target/debug/ci
|
||||||
|
- ldd ci/target/debug/ci
|
||||||
|
- "./ci/target/debug/ci"
|
||||||
services:
|
services:
|
||||||
- name: docker
|
- name: docker
|
||||||
image: docker:dind
|
image: docker:dind
|
||||||
|
Loading…
Reference in New Issue
Block a user