-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
#11 [CHORE] Update DOCKER-CD.yml
- Loading branch information
Showing
1 changed file
with
5 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,8 +7,7 @@ jobs: | |
ci: | ||
runs-on: ubuntu-22.04 | ||
env: | ||
working-directory: . | ||
|
||
working-directory: ./server # gradlew 파일이 위치한 디렉토리로 설정 | ||
|
||
steps: | ||
- name: 체크아웃 | ||
|
@@ -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] | ||
|
||
|
@@ -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 | ||
|