-
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.
Merge pull request #15 from KNU-HAEDAL/feat/auth
Feat/auth
- Loading branch information
Showing
7 changed files
with
53 additions
and
46 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 |
---|---|---|
|
@@ -40,16 +40,6 @@ jobs: | |
# script의 내용은 도커의 기존 프로세스들을 제거하고, docker repo로부터 방금 위에서 push한 내용을 pull 받아 실행하는 것입니다. | ||
# 실행 시, docker-compose를 사용합니다. | ||
steps: | ||
# - name: ✔️ send docker-compose.yml to EC2 server | ||
# uses: appleboy/[email protected] | ||
# with: | ||
# username: ec2-user | ||
# host: ${{ secrets.HOST }} | ||
# key: ${{ secrets.KEY }} | ||
# port: 22 | ||
# source: "dev/docker-compose.dev.yml" | ||
# target: "/home/ec2-user" | ||
|
||
- name: Deploy to server | ||
uses: appleboy/ssh-action@master | ||
id: deploy | ||
|
@@ -62,7 +52,6 @@ jobs: | |
docker rm -f $(docker ps -qa) # 기존에 실행되고 있는 도커 프로세스들을 제거합니다. | ||
docker rmi $(docker images -q) # 기존에 존재하는 도커 이미지들을 제거합니다. | ||
docker image prune -f # 사용하지 않는 도커 이미지들을 제거합니다. | ||
docker-compose up -d # mysql 개발용 컨테이너를 실행합니다. | ||
docker pull ${{ secrets.DOCKERHUB_USERNAME }}/${{ secrets.DOCKER_REPOSITORY }}:${{ github.sha }} | ||
docker run -d -p 80:8080 ${{ secrets.DOCKERHUB_USERNAME }}/${{ secrets.DOCKER_REPOSITORY }}:${{ github.sha }} | ||
#docker-compose -f /home/ec2-user/docker-compose.dev.yml up -d | ||
docker run -d -p 80:8080 ${{ secrets.DOCKERHUB_USERNAME }}/${{ secrets.DOCKER_REPOSITORY }}:${{ github.sha }} -e SPRING_PROFILES_ACTIVE=dev -e KAKAO_CLIENT_SECRET=${{ secrets.KAKAO_CLIENT_SECRET }} -e NAVER_CLIENT_SECRET=${{ secrets.NAVER_CLIENT_SECRET }} -e KAKAO_REDIRECT_URI=${{ secrets.KAKAO_REDIRECT_URI }} |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
version: '3' | ||
# 실행명령어 | ||
# docker-compose -f ./docker-compose.dev.yml up | ||
services: | ||
zzansuni-mysql: | ||
image: mysql | ||
restart: always | ||
volumes: | ||
- ./mysql-data:/var/lib/mysql | ||
ports: | ||
- "3306:3306" | ||
environment: | ||
MYSQL_DATABASE: zzansuni | ||
MYSQL_ROOT_PASSWORD: root |
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 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