add pipeline
This commit is contained in:
32
.gitea/workflows/buildAndDeply.yaml
Normal file
32
.gitea/workflows/buildAndDeply.yaml
Normal file
@@ -0,0 +1,32 @@
|
|||||||
|
name: Build und Deploy
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build-and-deploy:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
container:
|
||||||
|
image: gradle:8.7-jdk21
|
||||||
|
options: --user=root
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout Repository
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Gradle Wrapper ausführbar machen
|
||||||
|
run: chmod +x ./gradlew
|
||||||
|
|
||||||
|
- name: Projekt bauen
|
||||||
|
run: ./gradlew build
|
||||||
|
|
||||||
|
- name: Docker Compose Build & Deploy
|
||||||
|
run: |
|
||||||
|
docker compose -f ./compose.yml up -d --build
|
||||||
|
|
||||||
|
- name: Clean up (optional)
|
||||||
|
if: always()
|
||||||
|
run: docker system prune -f
|
||||||
Reference in New Issue
Block a user