Skip to content

Commit

Permalink
Merge pull request #22 from CSID-DGU/feat/#11-cicd
Browse files Browse the repository at this point in the history
#11 [CHORE] Update DOCKER-CD.yml
  • Loading branch information
bbabbi authored Oct 14, 2024
2 parents 7b2b0b8 + 77107f1 commit 2420a24
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/DOCKER-CD.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ jobs:
ci:
runs-on: ubuntu-22.04
env:
working-directory: .

working-directory: ./server # gradlew 파일이 위치한 디렉토리로 설정

steps:
- name: 체크아웃
Expand All @@ -26,16 +25,15 @@ jobs:
touch ./application.yml
echo "${{ secrets.CD_APPLICATION }}" > ./application.yml
cat ./application.yml
working-directory: ${{ env.working-directory }}
working-directory: ${{ env.working-directory }} # server 디렉토리 내에서 실행

- name: 빌드
run: |
chmod +x gradlew
chmod +x ./gradlew # ./gradlew로 경로 지정
./gradlew build -x test
working-directory: ${{ env.working-directory }}
working-directory: ${{ env.working-directory }} # server 디렉토리 내에서 빌드
shell: bash


- name: docker 로그인
uses: docker/[email protected]

Expand All @@ -49,7 +47,7 @@ jobs:
run: |
docker build --platform linux/amd64 -t chaeyoungmoon/cecd1921 .
docker push chaeyoungmoon/cecd1921
working-directory: ${{ env.working-directory }}
working-directory: ${{ env.working-directory }} # server 디렉토리 내에서 실행

cd:
needs: ci
Expand Down

0 comments on commit 2420a24

Please sign in to comment.