Tether/.gitea/workflows/deploy-api.yml

33 lines
746 B
YAML
Raw Permalink Normal View History

2024-09-08 13:19:15 -07:00
name: Deploy API
on:
push:
branches: ["master"]
2024-09-09 14:49:25 -07:00
paths: [".gitea/workflows/deploy-api.yml", "API/**", "!API/README.md", "!README.md", "!LICENSE.md"]
2024-09-08 13:19:15 -07:00
jobs:
2024-09-09 14:49:25 -07:00
deploy:
2024-09-08 13:19:15 -07:00
strategy:
matrix:
arch: ["ubuntu-latest"]
git-version: ["2.44.0"]
runs-on: ${{ matrix.arch }}
2024-09-09 14:49:25 -07:00
defaults:
run:
working-directory: "./API"
2024-09-08 13:19:15 -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-09-09 14:55:14 -07:00
git_remote_url: "ssh://dokku@10.10.3.28:22/tether-api"
2024-09-08 18:13:07 -07:00
ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }}