Files
mytimetracker/.gitea/workflows/buildAndDeply.yaml
Nils Burghardt 13dab82a7d
Some checks failed
Build-und-Deploy / build-and-deploy (push) Failing after 17s
add pipeline 13
2025-07-13 15:58:22 +02:00

37 lines
1009 B
YAML

name: Build-und-Deploy
on:
push:
branches:
- master
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: 🧾 Repository auschecken
uses: actions/checkout@v3
- name: 🛠 Baue das Projekt ohne Tests
run: ./gradlew clean build -x test
- name: 🚀 Übertrage JAR per SCP
uses: appleboy/scp-action@v0.1.7
with:
host: ${{ secrets.DEPLOY_HOST }}
username: ${{ secrets.DEPLOY_USER }}
key: ${{ secrets.DEPLOY_KEY }}
source: build/libs/MyTimeTracker-0.0.1-SNAPSHOT.jar
target: /opt/mytimetracker/build/libs/
- name: 🐳 Starte Docker Compose auf Remote-Server
uses: appleboy/ssh-action@v1.0.0
with:
host: ${{ secrets.DEPLOY_HOST }}
username: ${{ secrets.DEPLOY_USER }}
key: ${{ secrets.DEPLOY_KEY }}
script: |
cd /opt/mytimetracker
docker compose down
docker compose up -d --build