Skip to content

Commit fe2932a

Browse files
committed
fix: format workflow file
1 parent a777d75 commit fe2932a

File tree

1 file changed

+25
-25
lines changed

1 file changed

+25
-25
lines changed

.github/workflows/prod-deploy.yml

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
push:
66
branches:
77
- main
8-
8+
99
permissions:
1010
contents: read
1111

@@ -29,7 +29,7 @@ jobs:
2929
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
3030
aws-region: ${{ secrets.AWS_REGION }}
3131

32-
- name: export secret key
32+
- name: export secret key
3333
run: |
3434
echo "${{ vars.production_ENV }}" > .env
3535
@@ -64,26 +64,26 @@ jobs:
6464
docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG
6565
6666
deploy-frontend-service:
67-
name: Deploy to Frontend Service
68-
runs-on: ubuntu-latest
69-
needs: Build
70-
steps:
71-
- name: Git Checkout
72-
uses: actions/checkout@v2
73-
- name: Echo Branch
74-
run: echo running on branch ${GITHUB_REF##*/}
75-
- uses: actions/setup-node@v3
76-
with:
77-
node-version: 18
78-
- name: Deploy to server
79-
uses: appleboy/ssh-action@master
80-
with:
81-
host: ${{ secrets.PROD_SERVER_IP }}
82-
username: ${{ secrets.PROD_SERVER_USERNAME }}
83-
port: ${{ secrets.PORT }}
84-
key: ${{ secrets.PROD_SERVER_SSH_KEY }}
85-
script: |
86-
eval "$(ssh-agent -s)"
87-
ssh-add ~/.ssh/action
88-
cd /home/ubuntu/deploy
89-
docker compose up -d
67+
name: Deploy to Frontend Service
68+
runs-on: ubuntu-latest
69+
needs: Build
70+
steps:
71+
- name: Git Checkout
72+
uses: actions/checkout@v2
73+
- name: Echo Branch
74+
run: echo running on branch ${GITHUB_REF##*/}
75+
- uses: actions/setup-node@v3
76+
with:
77+
node-version: 18
78+
- name: Deploy to server
79+
uses: appleboy/ssh-action@master
80+
with:
81+
host: ${{ secrets.PROD_SERVER_IP }}
82+
username: ${{ secrets.PROD_SERVER_USERNAME }}
83+
port: ${{ secrets.PORT }}
84+
key: ${{ secrets.PROD_SERVER_SSH_KEY }}
85+
script: |
86+
eval "$(ssh-agent -s)"
87+
ssh-add ~/.ssh/action
88+
cd /home/ubuntu/deploy
89+
docker compose up -d

0 commit comments

Comments
 (0)