Skip to content

DonBosco Deploy

DonBosco Deploy #3

name: DonBosco Deploy
on:
workflow_dispatch:
jobs:
build-and-deploy:
runs-on: [self-hosted, donbosco]
environment:
name: donbosco
env:
API_PORT: ${{ secrets.API_PORT }}
JWT_SECRETKEY: ${{ secrets.JWT_SECRETKEY }}
MINIO_ACCESS_KEY: ${{ secrets.MINIO_ACCESS_KEY }}
MINIO_PORT: ${{ secrets.MINIO_PORT }}
MINIO_CONSOLE_PORT: ${{ secrets.MINIO_CONSOLE_PORT }}
MINIO_ROOT_PASSWORD: ${{ secrets.MINIO_ROOT_PASSWORD }}
MINIO_ROOT_USER: ${{ secrets.MINIO_ROOT_USER }}
MINIO_SECRET_KEY: ${{ secrets.MINIO_SECRET_KEY }}
MYSQL_PORT: ${{ secrets.MYSQL_PORT }}
MYSQL_ROOT_PASSWORD: ${{ secrets.MYSQL_ROOT_PASSWORD }}
steps:
- name: Checkout
uses: actions/checkout@v4.1.1
- name: Build with Maven
run: mvn -B package --file pom.xml
- name: Deploy via Docker
run: |
docker compose -f docker-compose-donbosco.yml down
docker compose -f docker-compose-donbosco.yml rm -f
docker compose -f docker-compose-donbosco.yml up --build -d