Backend/.gitea/workflows/ci.yml

31 lines
678 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
2024-04-08 18:54:45 +00:00
with:
2024-04-08 18:57:33 +00:00
fetch-depth: 2
2024-04-06 04:55:48 +00:00
2024-04-08 06:30:02 +00:00
- name: Set up JDK 17 and Maven
uses: s4u/setup-maven-action@v1.7.0
2024-04-08 06:20:25 +00:00
with:
java-version: '17'
2024-04-08 06:25:48 +00:00
distribution: 'temurin'
2024-04-08 06:30:02 +00:00
maven-version: 3.8.5
2024-04-08 06:20:25 +00:00
- name: Run Tests
2024-04-08 06:33:14 +00:00
run: mvn --batch-mode test -q
2024-04-08 06:20:25 +00:00
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 }}