Skip to content

add: route for pdf processing #123

add: route for pdf processing

add: route for pdf processing #123

name: DockerProd Deploy
on:
push:
branches:
- main
jobs:
build-and-deploy:
runs-on: ["self-hosted", "staging"]
env:
API_PORT: ${{ secrets.API_PORT_STAGING }}
JWT_SECRETKEY: ${{ secrets.JWT_SECRETKEY_STAGING }}
MINIO_ACCESS_KEY: ${{ secrets.MINIO_ACCESS_KEY_STAGING }}
MINIO_PORT: ${{ secrets.MINIO_PORT_STAGING }}
MINIO_CONSOLE_PORT: ${{ secrets.MINIO_CONSOLE_PORT_STAGING }}
MINIO_ROOT_PASSWORD: ${{ secrets.MINIO_ROOT_PASSWORD_STAGING }}
MINIO_ROOT_USER: ${{ secrets.MINIO_ROOT_USER_STAGING }}
MINIO_SECRET_KEY: ${{ secrets.MINIO_SECRET_KEY_STAGING }}
MYSQL_PORT: ${{ secrets.MYSQL_PORT_STAGING }}
MYSQL_ROOT_PASSWORD: ${{ secrets.MYSQL_ROOT_PASSWORD_STAGING }}
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-staging.yml down
docker compose -f docker-compose-staging.yml rm -f
docker compose -f docker-compose-staging.yml up --build -d