-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Dockerfile 방식에서 docker-compose 방식으로 대체
- Loading branch information
1 parent
3910ec9
commit 435b952
Showing
6 changed files
with
6 additions
and
279 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 |
---|---|---|
|
@@ -20,6 +20,9 @@ jobs: | |
distribution: 'temurin' | ||
java-version: '17' | ||
|
||
- name: application.yml 파일 생성 | ||
run: echo "${{ secrets.APPLICATION_ENV }}" > ./src/main/resources/application-prod.yml | ||
|
||
- name: Gradle 명령 실행을 위해 권한을 부여한다 | ||
run: chmod +x gradlew | ||
|
||
|
@@ -32,23 +35,10 @@ jobs: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_PASSWORD }} | ||
|
||
- name: 환경변수 파일 생성 | ||
run: echo "${{ secrets.APPLICATION_ENV }}" > ./.env | ||
|
||
- name: ubuntu Docker image build and push | ||
- name: Docker 이미지 빌드 & 푸쉬 | ||
run: | | ||
docker-compose -f ./docker-compose.yml build | ||
docker-compose -f ./docker-compose.yml push | ||
# - name: ubuntu Docker image build | ||
# run: docker build -t ${{ secrets.DOCKER_NAME }}/we-share-wish-hair:latest -f Dockerfile-server . | ||
# | ||
# - name: Redis Docker image build | ||
# run: docker build -t ${{ secrets.DOCKER_NAME }}/we-share-wish-hair:redis -f Dockerfile-redis . | ||
# | ||
# - name: ubuntu docker Hub 푸쉬 | ||
# run: docker push ${{ secrets.DOCKER_NAME }}/we-share-wish-hair:latest | ||
# - name: Redis docker Hub 푸쉬 | ||
# run: docker push ${{ secrets.DOCKER_NAME }}/we-share-wish-hair:redis | ||
- name: Deploy with push | ||
uses: appleboy/[email protected] | ||
|
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
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.