@@ -0,0 +1,35 @@
|
|||||||
|
name: Deploy MySpeed
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
paths:
|
||||||
|
- 'MySpeed/**'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
deploy:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout Code
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Sync MySpeed to Host
|
||||||
|
uses: appleboy/scp-action@master
|
||||||
|
with:
|
||||||
|
host: "192.168.2.13"
|
||||||
|
username: "miker"
|
||||||
|
key: ${{ secrets.SSH_PRIVATE_KEY }}
|
||||||
|
source: "MySpeed/*"
|
||||||
|
target: "/opt/Docker-Deployments/MySpeed"
|
||||||
|
strip_components: 1
|
||||||
|
|
||||||
|
- name: Deploy MySpeed Stack
|
||||||
|
uses: appleboy/ssh-action@master
|
||||||
|
with:
|
||||||
|
host: "192.168.2.13"
|
||||||
|
username: "miker"
|
||||||
|
key: ${{ secrets.SSH_PRIVATE_KEY }}
|
||||||
|
script: |
|
||||||
|
cd /opt/Docker-Deployments/MySpeed
|
||||||
|
docker compose up -d --remove-orphans
|
||||||
@@ -0,0 +1,14 @@
|
|||||||
|
services:
|
||||||
|
myspeed:
|
||||||
|
container_name: MySpeed
|
||||||
|
image: germannewsmaker/myspeed
|
||||||
|
ports:
|
||||||
|
- '5216:5216'
|
||||||
|
volumes:
|
||||||
|
- /opt/Docker-Deployments/MySpeed/data:/myspeed/data
|
||||||
|
restart: unless-stopped
|
||||||
|
networks:
|
||||||
|
- main
|
||||||
|
networks:
|
||||||
|
main:
|
||||||
|
external: true # Tells Compose not to create this network
|
||||||
Reference in New Issue
Block a user