Skip to content

Commit

Permalink
chore: cicd 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
Hoya324 committed Aug 12, 2024
1 parent 24c4011 commit fdfd4f0
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,6 @@ jobs:
java-version: 17
distribution: 'temurin'

# docker-compose 파일 생성
- name: make docker-compose.yml
if: contains(github.ref, 'develop')
run: |
cd .
touch ./docker-compose.yml
echo "${{ secrets.DOCKER_COMPOSE_YML }}" > ./docker-compose.yml
shell: bash

# 환경별 yml 파일 생성
- name: make application.yml
if: contains(github.ref, 'develop')
Expand Down Expand Up @@ -122,6 +113,7 @@ jobs:
key: ${{ secrets.PEM_KEY }}
script: |
cd /home/${{ secrets.USERNAME }}
echo "${{ secrets.DOCKER_COMPOSE_YML }}" > docker-compose.yml
echo ${{ secrets.DOCKER_PASSWORD }} | sudo docker login -u ${{ secrets.DOCKER_USERNAME }} --password-stdin
if [ "$(sudo docker ps -q)" ]; then sudo docker stop $(sudo docker ps -q); fi
if [ "$(sudo docker ps -a -q)" ]; then sudo docker rm $(sudo docker ps -a -q); fi
Expand Down

0 comments on commit fdfd4f0

Please sign in to comment.