feat: with key
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Kasper Juul Hermansen 2023-04-07 21:51:10 +02:00
parent 580653f3de
commit 488955aaa5
Signed by: kjuulh
GPG Key ID: 57B6E1465221F912

View File

@ -24,13 +24,20 @@ steps:
- name: dockersock
path: /var/run
environment:
#DOCKER_BUILDKIT: 1
DOCKER_BUILDKIT: 1
DOCKER_PASSWORD:
from_secret: docker_password
DOCKER_USERNAME:
from_secret: docker_username
SSH_KEY:
from_secret: gitea_id_ed25519
commands:
- set -eu
- eval `ssh-agent`
- mkdir -p ~/.ssh
- chmod -R 600 ~/.ssh
- echo "$SSH_KEY" > ~/.ssh/id_ed25519
- ssh-add
- echo "$DOCKER_PASSWORD" | docker login --password-stdin --username="$DOCKER_USERNAME" docker.io
- shuttle run build
services: