File tree Expand file tree Collapse file tree 1 file changed +11
-8
lines changed Expand file tree Collapse file tree 1 file changed +11
-8
lines changed Original file line number Diff line number Diff line change 1
1
on :
2
2
push :
3
- branches : [ "master " ]
3
+ branches : [ "ops/cd-test " ]
4
4
workflow_dispatch :
5
5
6
6
jobs :
@@ -63,13 +63,16 @@ jobs:
63
63
docker tag ${{ secrets.ECR_REPOSITORY }}:${{ secrets.IMAGE_TAG }} ${{ secrets.REPO_URL }}:${{ secrets.IMAGE_TAG }}
64
64
docker push ${{ secrets.REPO_URL }}:${{ secrets.IMAGE_TAG }}
65
65
66
- - name : CodeDeploy Create Deployment
67
- run : |
68
- aws deploy create-deployment \
69
- --application-name codedeploy-application \
70
- --deployment-group-name codedeploy-group \
71
- --deployment-config-name CodeDeployDefault.OneAtATime \
72
- --github-location repository=${{ github.repository }},commitId=${{ github.sha }}
66
+ - name : execute remote ssh
67
+ uses : appleboy/ssh-action@master
68
+ with :
69
+ host : ${{ secrets.REMOTE_SSH_HOST }}
70
+ username : ${{ secrets.REMOTE_SSH_USERNAME }}
71
+ key : ${{ secrets.REMOTE_SSH_KEY }}
72
+ port : ${{ secrets.REMOTE_SSH_PORT }}
73
+ script : |
74
+ docker pull ${{ secrets.REPO_URL }}:${{ secrets.IMAGE_TAG }}
75
+ docker compose restart
73
76
74
77
- name : SMS-Backend-CD Discord Notification
75
78
uses : sarisia/actions-status-discord@v1
You can’t perform that action at this time.
0 commit comments