mirror of
https://github.com/xCyanGrizzly/DragonsStash.git
synced 2026-05-10 22:01:16 +00:00
This commit is contained in:
20
.drone.yml
20
.drone.yml
@@ -1,14 +1,13 @@
|
||||
---
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: build-and-deploy
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: build-and-deploy
|
||||
|
||||
trigger:
|
||||
trigger:
|
||||
branch: [main]
|
||||
event: [push]
|
||||
|
||||
steps:
|
||||
# Build the Docker image and push to Gitea's built-in registry
|
||||
steps:
|
||||
- name: build
|
||||
image: plugins/docker
|
||||
settings:
|
||||
@@ -22,13 +21,14 @@ steps:
|
||||
password:
|
||||
from_secret: gitea_password
|
||||
|
||||
# SSH into your server and redeploy
|
||||
- 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_SCRIPT: "cd /opt/stacks/DragonsStash && docker compose pull &&
|
||||
docker compose up -d"
|
||||
|
||||
Reference in New Issue
Block a user