Merge pull request 'fix: CI/CD 워크플로우 checkout 에러 수정' (#3) from develop into main
All checks were successful
Build and Deploy API / build-and-deploy (push) Successful in 21s
All checks were successful
Build and Deploy API / build-and-deploy (push) Successful in 21s
Reviewed-on: #3
This commit is contained in:
커밋
3e918baf74
@ -12,7 +12,9 @@ jobs:
|
|||||||
image: maven:3.9-eclipse-temurin-17
|
image: maven:3.9-eclipse-temurin-17
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
run: |
|
||||||
|
git clone --depth=1 --branch=${GITHUB_REF_NAME} \
|
||||||
|
${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}.git .
|
||||||
|
|
||||||
- name: Configure Maven settings
|
- name: Configure Maven settings
|
||||||
run: |
|
run: |
|
||||||
@ -39,8 +41,9 @@ jobs:
|
|||||||
- name: Build
|
- name: Build
|
||||||
run: mvn clean package -DskipTests -B
|
run: mvn clean package -DskipTests -B
|
||||||
|
|
||||||
- name: Deploy to server
|
- name: Deploy
|
||||||
run: |
|
run: |
|
||||||
cp target/gc-guide-api-*.jar /deploy/api/app.jar
|
cp target/gc-guide-api-*.jar /deploy/api/app.jar
|
||||||
echo "Deployed at $(date '+%Y-%m-%d %H:%M:%S')"
|
date '+%Y-%m-%d %H:%M:%S' > /deploy/api/.deploy-trigger
|
||||||
|
echo "Deployed at $(cat /deploy/api/.deploy-trigger)"
|
||||||
ls -la /deploy/api/
|
ls -la /deploy/api/
|
||||||
|
|||||||
불러오는 중...
Reference in New Issue
Block a user