diff --git a/.github/workflows/cd-dev.yml b/.github/workflows/cd-dev.yml index 711181f..a82c903 100644 --- a/.github/workflows/cd-dev.yml +++ b/.github/workflows/cd-dev.yml @@ -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]