RESTfulMC/.gitea/workflows/deploy.yml

46 lines
976 B
YAML
Raw Normal View History

2024-04-06 21:27:09 -07:00
name: Deploy App
on:
push:
branches: ["master"]
paths-ignore:
- README.md
- LICENSE
2024-04-07 00:21:03 -07:00
- docker-compose.yml
- postman_collection.json
2024-04-06 21:27:09 -07:00
jobs:
docker:
strategy:
matrix:
arch: ["ubuntu-latest"]
git-version: ["2.44.0"]
runs-on: ${{ matrix.arch }}
2024-04-07 23:12:44 -07:00
# Services to run
services:
# Test Redis Server
redis:
image: redis
options: >-
--health-cmd "redis-cli ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 6379:6379
2024-04-06 21:27:09 -07:00
# Steps to run
steps:
# Checkout the repo
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
# Deploy to Dokku
- name: Deploy to Dokku
uses: dokku/github-action@master
with:
2024-04-06 21:32:37 -07:00
git_remote_url: "ssh://dokku@10.10.3.28:22/restfulmc"
2024-04-07 23:12:44 -07:00
ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }}