mirror of
https://github.com/xCyanGrizzly/DragonsStash.git
synced 2026-05-11 06:11:15 +00:00
This commit is contained in:
47
.drone.yml
47
.drone.yml
@@ -1,34 +1,33 @@
|
|||||||
---
|
---
|
||||||
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:
|
||||||
- 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
|
||||||
|
|
||||||
- name: deploy
|
- name: deploy
|
||||||
image: appleboy/drone-ssh
|
image: appleboy/drone-ssh
|
||||||
settings:
|
environment:
|
||||||
key:
|
PLUGIN_HOST: 192.168.68.68
|
||||||
from_secret: ssh_key
|
|
||||||
environment:
|
|
||||||
PLUGIN_HOST: 192.168.68.68
|
|
||||||
PLUGIN_USERNAME: sam
|
PLUGIN_USERNAME: sam
|
||||||
PLUGIN_PORT: "22"
|
PLUGIN_PORT: "22"
|
||||||
|
PLUGIN_KEY:
|
||||||
|
from_secret: ssh_key
|
||||||
PLUGIN_SCRIPT: "cd /opt/stacks/DragonsStash && docker compose pull &&
|
PLUGIN_SCRIPT: "cd /opt/stacks/DragonsStash && docker compose pull &&
|
||||||
docker compose up -d"
|
docker compose up -d"
|
||||||
|
|||||||
Reference in New Issue
Block a user