Update .drone.yml
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
xCyanGrizzly
2026-03-21 12:29:49 +01:00
committed by GitHub
parent dea419b778
commit 50e7e02b2d

View File

@@ -1,34 +1,34 @@
--- ---
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:
# Build the Docker image and push to Gitea's built-in registry - 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
# SSH into your server and redeploy - name: deploy
- name: deploy
image: appleboy/drone-ssh image: appleboy/drone-ssh
settings:
key:
from_secret: ssh_key
environment: environment:
PLUGIN_HOST: 192.168.68.68 PLUGIN_HOST: 192.168.68.68
PLUGIN_USERNAME: sam PLUGIN_USERNAME: sam
PLUGIN_PORT: "22" PLUGIN_PORT: "22"
PLUGIN_KEY: PLUGIN_SCRIPT: "cd /opt/stacks/DragonsStash && docker compose pull &&
from_secret: ssh_key docker compose up -d"
PLUGIN_SCRIPT: "cd /opt/stacks/DragonsStash && docker compose pull && docker compose up -d"