Update .drone.yml
Some checks failed
continuous-integration/drone/push Build encountered an error

This commit is contained in:
xCyanGrizzly
2026-03-21 13:25:56 +01:00
committed by GitHub
parent 036dadcb21
commit 2ceba66313

View File

@@ -1,35 +1,36 @@
--- ---
kind: pipeline kind: pipeline
type: docker type: docker
name: build-and-deploy name: build-and-deploy
trigger: trigger:
branch: [main] branch: [main]
event: [push] event: [push]
steps: steps:
- name: build - name: build
image: plugins/docker image: plugins/docker
settings: settings:
repo: git.samagsteribbe.nl/admin/dragonsstash repo: git.samagsteribbe.nl/admin/dragonsstash
registry: git.samagsteribbe.nl registry: git.samagsteribbe.nl
tags: tags:
- latest - latest
- "${DRONE_COMMIT_SHA:0:8}" - "${DRONE_COMMIT_SHA:0:8}"
username: username:
from_secret: gitea_username from_secret: gitea_username
password: password:
from_secret: gitea_password from_secret: gitea_password
- name: deploy - name: deploy
image: alpine image: alpine
environment: environment:
SSH_KEY: SSH_KEY:
from_secret: ssh_key from_secret: ssh_key
commands: commands:
- apk add --no-cache openssh-client - apk add --no-cache openssh-client
- mkdir -p ~/.ssh - mkdir -p ~/.ssh
- printf "%s" "$SSH_KEY" > ~/.ssh/id_ed25519 - printf "%s" "$SSH_KEY" > ~/.ssh/id_ed25519
- chmod 600 ~/.ssh/id_ed25519 - chmod 600 ~/.ssh/id_ed25519
- ssh-keyscan -t ed25519 192.168.68.68 > ~/.ssh/known_hosts 2>/dev/null - ssh-keyscan -t ed25519 192.168.68.68 > ~/.ssh/known_hosts 2>/dev/null
- ssh sam@192.168.68.68 "cd /opt/stacks/DragonsStash && docker compose pull && docker compose up -d" - ssh sam@192.168.68.68 "cd /opt/stacks/DragonsStash && docker compose
pull && docker compose up -d"