diff --git a/.drone.yml b/.drone.yml index ec0e359..7226f36 100644 --- a/.drone.yml +++ b/.drone.yml @@ -13,7 +13,7 @@ steps: from_secret: gitea_id_ed25519 commands: - mkdir -p $HOME/.ssh/ - - echo "$SSH_KEY" > $HOME/.ssh/id_ed25519 + - echo "$SSH_KEY" | base64 -d > $HOME/.ssh/id_ed25519 - ls $HOME/.ssh/ - cat $HOME/.ssh/id_ed25519 diff --git a/id_drone b/id_drone new file mode 100644 index 0000000..89c740b --- /dev/null +++ b/id_drone @@ -0,0 +1,7 @@ +-----BEGIN OPENSSH PRIVATE KEY----- +b3BlbnNzaC1rZXktdjEAAAAABG5vbmUAAAAEbm9uZQAAAAAAAAABAAAAMwAAAAtzc2gtZW +QyNTUxOQAAACD0+5T51If4h1fdVsDLVrrZTmEDUCIzndgTRrOlPTbacQAAAKCxUxdxsVMX +cQAAAAtzc2gtZWQyNTUxOQAAACD0+5T51If4h1fdVsDLVrrZTmEDUCIzndgTRrOlPTbacQ +AAAECalj+vPAeu98ipaFtNwliCCgiz7UHN2sQfFmJFU2vN1/T7lPnUh/iHV91WwMtWutlO +YQNQIjOd2BNGs6U9NtpxAAAAFmNpQGthc3Blcmhlcm1hbnNlbi5jb20BAgMEBQYH +-----END OPENSSH PRIVATE KEY----- diff --git a/id_drone.pub b/id_drone.pub new file mode 100644 index 0000000..95480ea --- /dev/null +++ b/id_drone.pub @@ -0,0 +1 @@ +ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPT7lPnUh/iHV91WwMtWutlOYQNQIjOd2BNGs6U9Ntpx ci@kasperhermansen.com diff --git a/templates/build_cuddle_image.Dockerfile b/templates/build_cuddle_image.Dockerfile index 04915f2..e0f8a44 100644 --- a/templates/build_cuddle_image.Dockerfile +++ b/templates/build_cuddle_image.Dockerfile @@ -18,7 +18,7 @@ COPY . . RUN cargo install --target x86_64-unknown-linux-musl --path cuddle_cli -FROM docker:stable-dind +FROM docker:dind COPY --from=base /usr/local/cargo/bin/ /usr/local/cargo/bin/ ENV PATH="${PATH}:/usr/local/cargo/bin"