Merge pull request 'ci: Gitea Actions 자동배포 워크플로우 추가' (#88) from feature/add-cicd-workflow into develop
This commit is contained in:
커밋
44bfb3055b
49
.gitea/workflows/deploy.yml
Normal file
49
.gitea/workflows/deploy.yml
Normal file
@ -0,0 +1,49 @@
|
|||||||
|
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/
|
||||||
@ -74,6 +74,7 @@
|
|||||||
- AIS Import Job 로그에 캐시 적재 흐름 명시 (`API → 캐시`)
|
- AIS Import Job 로그에 캐시 적재 흐름 명시 (`API → 캐시`)
|
||||||
|
|
||||||
### 기타
|
### 기타
|
||||||
|
- Gitea Actions 자동배포 워크플로우 추가
|
||||||
- 프론트엔드 title 변경 (#76)
|
- 프론트엔드 title 변경 (#76)
|
||||||
- Gitea 팀 프로젝트 워크플로우 구조 적용
|
- Gitea 팀 프로젝트 워크플로우 구조 적용
|
||||||
- commit-msg 정규식 통일 (#1)
|
- commit-msg 정규식 통일 (#1)
|
||||||
|
|||||||
불러오는 중...
Reference in New Issue
Block a user