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:
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: - name: deploy
branch: [main] image: appleboy/drone-ssh
event: [push] settings:
key:
steps: from_secret: ssh_key
# Build the Docker image and push to Gitea's built-in registry environment:
- name: build PLUGIN_HOST: 192.168.68.68
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
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"