Skip to content

Commit

Permalink
#112 - cd 코드 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
AnTaeho committed Dec 9, 2024
1 parent 19b442f commit f1c4c45
Showing 1 changed file with 10 additions and 15 deletions.
25 changes: 10 additions & 15 deletions .github/workflows/cd-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,21 +102,16 @@ jobs:
# tags: dksxogh902318/palettee-server:latest


# # Deploy to EC2
# - name: Deploy to EC2
# uses: appleboy/ssh-action@master
# with:
# host: ${{ secrets.EC2_IP }}
# username: ${{ secrets.USERNAME }}
# key: ${{ secrets.EC2_PEM_KEY }}
# script: |
# docker pull ${{ secrets.DOCKER_HUB_USERNAME }}/palettee-server:${{ steps.short_sha.outputs.sha_short }}
# docker tag ${{ secrets.DOCKER_HUB_USERNAME }}/palettee-server:${{ steps.short_sha.outputs.sha_short }} palettee-server
# docker rm -f palettee-server || true
# docker run -d --name palettee-server \
# -e TZ=Asia/Seoul -e SPRING_PROFILES_ACTIVE=ec2-dev \
# -v ~/palettee-service-logs:/home/palettee-service-logs \
# -p 8081:8081 ${{ secrets.DOCKER_HUB_USERNAME }}/palettee-server:${{ steps.short_sha.outputs.sha_short }}
# Deploy to EC2
- name: Deploy to EC2
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.EC2_IP }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.EC2_PEM_KEY }}
script: |
cd actions-runner
./run.sh
backend-docker-pull-and-run:
runs-on: [self-hosted, dev]
Expand Down

0 comments on commit f1c4c45

Please sign in to comment.