From 50e7e02b2dcb1bf5d882030bba5f40d9d854a34f Mon Sep 17 00:00:00 2001 From: xCyanGrizzly <53275238+xCyanGrizzly@users.noreply.github.com> Date: Sat, 21 Mar 2026 12:29:49 +0100 Subject: [PATCH] Update .drone.yml --- .drone.yml | 64 +++++++++++++++++++++++++++--------------------------- 1 file changed, 32 insertions(+), 32 deletions(-) diff --git a/.drone.yml b/.drone.yml index 6b3c708..7477bdb 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,34 +1,34 @@ ---- -kind: pipeline -type: docker -name: build-and-deploy +--- + kind: pipeline + type: docker + name: build-and-deploy + + trigger: + branch: [main] + event: [push] + + steps: + - name: build + image: plugins/docker + settings: + repo: git.samagsteribbe.nl/admin/dragonsstash + registry: git.samagsteribbe.nl + tags: + - latest + - "${DRONE_COMMIT_SHA:0:8}" + username: + from_secret: gitea_username + password: + from_secret: gitea_password -trigger: - branch: [main] - event: [push] - -steps: - # Build the Docker image and push to Gitea's built-in registry - - name: build - image: plugins/docker - settings: - repo: git.samagsteribbe.nl/admin/dragonsstash - registry: git.samagsteribbe.nl - tags: - - latest - - "${DRONE_COMMIT_SHA:0:8}" - username: - from_secret: gitea_username - password: - from_secret: gitea_password - - # SSH into your server and redeploy - - name: deploy - image: appleboy/drone-ssh - environment: - PLUGIN_HOST: 192.168.68.68 + - name: deploy + image: appleboy/drone-ssh + settings: + key: + from_secret: ssh_key + environment: + PLUGIN_HOST: 192.168.68.68 PLUGIN_USERNAME: sam - PLUGIN_PORT: "22" - PLUGIN_KEY: - from_secret: ssh_key - PLUGIN_SCRIPT: "cd /opt/stacks/DragonsStash && docker compose pull && docker compose up -d" + PLUGIN_PORT: "22" + PLUGIN_SCRIPT: "cd /opt/stacks/DragonsStash && docker compose pull && + docker compose up -d"