mirror of
https://github.com/xCyanGrizzly/DragonsStash.git
synced 2026-05-11 06:11:15 +00:00
This commit is contained in:
10
.drone.yml
10
.drone.yml
@@ -8,7 +8,6 @@ trigger:
|
|||||||
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:
|
||||||
@@ -22,13 +21,14 @@ steps:
|
|||||||
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"
|
|
||||||
|
|||||||
Reference in New Issue
Block a user