mirror of
https://github.com/xCyanGrizzly/DragonsStash.git
synced 2026-05-11 06:11:15 +00:00
This commit is contained in:
36
.drone.yml
Normal file
36
.drone.yml
Normal file
@@ -0,0 +1,36 @@
|
|||||||
|
---
|
||||||
|
kind: pipeline
|
||||||
|
type: docker
|
||||||
|
name: build-and-deploy
|
||||||
|
|
||||||
|
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
|
||||||
|
settings:
|
||||||
|
host: 192.168.68.68
|
||||||
|
username: sam
|
||||||
|
key:
|
||||||
|
from_secret: ssh_key
|
||||||
|
script:
|
||||||
|
- cd /opt/stacks/DragonsStash
|
||||||
|
- docker compose pull
|
||||||
|
- docker compose up -d
|
||||||
Reference in New Issue
Block a user