Backend/.gitea/workflows/ci.yml

30 lines
624 B
YAML
Raw Normal View History

2024-04-06 04:55:48 +00:00
name: "deploy"
on:
push:
branches:
- master
jobs:
deploy:
runs-on: ubuntu-22.04
steps:
- name: Cloning repo
uses: actions/checkout@v4
with:
fetch-depth: 0
2024-04-08 06:20:25 +00:00
- name: Set up JDK 17
2024-04-08 06:24:14 +00:00
uses: actions/setup-java@v4
2024-04-08 06:20:25 +00:00
with:
java-version: '17'
2024-04-08 06:22:42 +00:00
distribution: 'adopt'
2024-04-08 06:20:25 +00:00
- name: Run Tests
run: mvn --batch-mode test
2024-04-06 04:55:48 +00:00
- name: Push to dokku
uses: dokku/github-action@master
with:
2024-04-06 18:33:29 +00:00
git_remote_url: "ssh://dokku@10.0.50.137:22/minecraft-helper"
2024-04-06 04:55:48 +00:00
ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }}