Skip to content

Commit

Permalink
[Test] Deploy Test
Browse files Browse the repository at this point in the history
  • Loading branch information
gunyu1019 committed Jul 22, 2024
1 parent af32648 commit ffbace6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ jobs:
deploy:
runs-on: ubuntu-latest
env:
ProjectID: Project ID
ProjectID: automatic_continuous_deployment
steps:
- name: Deploy to Virtual Private Server(VPS)
run: |
deployment_response = $(curl http://deployment1.yhs.kr/deploy?project_id={{ env.ProjectID }}
deployment_response = $(curl http://deployment1.yhs.kr/deploy?project_id=${{ env.ProjectID }}
-H 'Project-Token: {{ secrets.PROJECT_TOKEN }}'
-H 'Token: {{ secrets.TOKEN }}')
if [ $deployment_response -eq "11" ]; then
Expand Down Expand Up @@ -42,7 +42,7 @@ jobs:
fi
- name: Apply a New Version
run: |
restart_response = $(curl http://deployment1.yhs.kr/restart?project_id={{ env.ProjectID }}
restart_response = $(curl http://deployment1.yhs.kr/restart?project_id=${{ env.ProjectID }}
-H 'Project-Token: {{ secrets.PROJECT_TOKEN }}'
-H 'Token: {{ secrets.TOKEN }}')
if [ $deployment_response -eq "11" ]; then
Expand All @@ -65,7 +65,7 @@ jobs:
shell: bash
- name: Checking Status
run: |
state_response = $(curl http://deployment1.yhs.kr/state?project_id={{ env.ProjectID }}
state_response = $(curl http://deployment1.yhs.kr/state?project_id=${{ env.ProjectID }}
if [ state_response -eq "0" ]; then
echo "Success Deployment (Congratulations!)"
exit 0
Expand Down

0 comments on commit ffbace6

Please sign in to comment.