snp-collector/.gitea/workflows/deploy.yml
HYOJIN 94e41909d3 Remove unused bypass/screening code, update frontend favicon and title
- Remove 75 orphaned files: bypass API (models, DTOs, repositories, base classes, SQL schema),
  screening (models, DTOs, repositories), and CodeGenerationResult DTO
- Replace favicon with navy version
- Rename app title from "S&P Data Platform" to "S&P Collector"
- Fix vite base path to match Spring Boot context-path (/snp-collector)
- Rewrite CLAUDE.md with accurate architecture documentation

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-07 09:49:38 +09:00

50 lines
1.4 KiB
YAML

name: Build and Deploy Batch
on:
push:
branches:
- main
jobs:
build-and-deploy:
runs-on: ubuntu-latest
container:
image: maven:3.9-eclipse-temurin-17
steps:
- name: Checkout
run: |
git clone --depth=1 --branch=${GITHUB_REF_NAME} \
http://gitea:3000/${GITHUB_REPOSITORY}.git .
- name: Configure Maven settings
run: |
mkdir -p ~/.m2
cat > ~/.m2/settings.xml << 'SETTINGS'
<settings>
<mirrors>
<mirror>
<id>nexus</id>
<mirrorOf>*</mirrorOf>
<url>https://nexus.gc-si.dev/repository/maven-public/</url>
</mirror>
</mirrors>
<servers>
<server>
<id>nexus</id>
<username>${{ secrets.NEXUS_USERNAME }}</username>
<password>${{ secrets.NEXUS_PASSWORD }}</password>
</server>
</servers>
</settings>
SETTINGS
- name: Build
run: mvn clean package -DskipTests -B
- name: Deploy
run: |
cp target/snp-batch-validation-*.jar /deploy/snp-batch/app.jar
date '+%Y-%m-%d %H:%M:%S' > /deploy/snp-batch/.deploy-trigger
echo "Deployed at $(cat /deploy/snp-batch/.deploy-trigger)"
ls -la /deploy/snp-batch/