ci - eapim-portal gitea actions 워크플로 추가
- master / feats/ci-test push 시 트리거 - 세 repo composite 체크아웃 후 빌드 - war 산출물 업로드
This commit is contained in:
@@ -0,0 +1,53 @@
|
||||
name: eapim-portal CI (from elink-portal-common)
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
- feats/ci-test
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: [self-hosted, linux, eapim-portal]
|
||||
defaults:
|
||||
run:
|
||||
working-directory: eapim-portal
|
||||
|
||||
steps:
|
||||
- name: Checkout eapim-portal (master)
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
repository: djb-eapim/eapim-portal
|
||||
ref: master
|
||||
token: ${{ secrets.GITEA_TOKEN }}
|
||||
path: eapim-portal
|
||||
|
||||
- name: Checkout elink-portal-common (trigger SHA)
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
path: elink-portal-common
|
||||
|
||||
- name: Checkout elink-online-core-jpa (master)
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
repository: djb-eapim/elink-online-core-jpa
|
||||
ref: master
|
||||
token: ${{ secrets.GITEA_TOKEN }}
|
||||
path: eapim-online/elink-online-core-jpa
|
||||
|
||||
- name: Verify toolchain
|
||||
run: |
|
||||
java -version
|
||||
gradle --version
|
||||
|
||||
- name: Gradle build (no tests)
|
||||
run: gradle clean build -x test --no-daemon
|
||||
|
||||
- name: Upload WAR artifacts
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: eapim-portal-wars-${{ github.sha }}
|
||||
path: |
|
||||
eapim-portal/build/libs/eapim-portal.war
|
||||
eapim-portal/build/libs/eapim-portal-boot.war
|
||||
if-no-files-found: error
|
||||
Reference in New Issue
Block a user