Skip to content

Commit

Permalink
Update gradle.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
noeyoes authored Mar 2, 2024
1 parent 35a4de9 commit 429d04b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ jobs:
java-version: '17'
distribution: 'temurin'

#Secret에 설정해둔 YML파일 (BASE64로 인코딩 되어있어야 함) 설정
#Secret에 설정해둔 YML파일 (BASE64로 인코딩 되어있어야 함) 설정
- name: Set YML
run: |
mkdir -p src/main/resources
echo "${{ secrets.APPLICATION_YML }}" > src/main/resources/application.yml
echo "${{ secrets.APPLICATION_YML }}" | base64 --decode > src/main/resources/application.yml
find src

Expand All @@ -37,7 +37,7 @@ jobs:



#————————— Docker ——————————
#------------------- Docker --------------------

# Docker Image Build
- name: Docker Image Build
Expand All @@ -56,7 +56,7 @@ jobs:



#————————— EC2 ——————————
#------------------- EC2 --------------------

# AWS EC2 Server Connect & Docker 명령어 실행
- name: AWS EC2 Connection
Expand All @@ -71,4 +71,4 @@ jobs:
sudo docker stop ${{ secrets.DOCKERHUB_IMAGENAME }}
sudo docker rm ${{ secrets.DOCKERHUB_IMAGENAME }}
sudo docker pull ${{ secrets.DOCKERHUB_USERNAME }}/${{ secrets.DOCKERHUB_IMAGENAME }}
sudo docker run -it -d -p 8080:8080 ——————————name ${{ secrets.DOCKERHUB_IMAGENAME }} -e TZ=Asia/Seoul ${{ secrets.DOCKERHUB_USERNAME }}/${{ secrets.DOCKERHUB_IMAGENAME }}
sudo docker run -it -d -p 8080:8080 --name ${{ secrets.DOCKERHUB_IMAGENAME }} -e TZ=Asia/Seoul ${{ secrets.DOCKERHUB_USERNAME }}/${{ secrets.DOCKERHUB_IMAGENAME }}

0 comments on commit 429d04b

Please sign in to comment.