Skip to content

Commit 68d8024

Browse files
authored
πŸ”€ Merge branches [main<= develop]
πŸ› CI/CD 였λ₯˜ μˆ˜μ • 재 병합
2 parents c95d9f7 + 6d37016 commit 68d8024

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

β€Ž.github/workflows/deploy-main.ymlβ€Ž

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
chmod 600 ~/.ssh/id_rsa
2121
2222
cat >>~/.ssh/config <<END
23-
Host EKEC-EC2
23+
Host EKEC_EC2
2424
HostName $EC2_HOST
2525
User $EC2_USER
2626
IdentityFile ~/.ssh/id_rsa
@@ -33,17 +33,17 @@ jobs:
3333

3434
- name: Copy Workspace
3535
run: |
36-
ssh EKEC-EC2 'sudo mkdir -p /opt/app/EKEC'
37-
ssh EKEC-EC2'sudo chown ubuntu:ubuntu /opt/app/EKEC'
38-
scp -r ./[!.]* EKEC-EC2:/opt/app/EKEC
36+
ssh EKEC_EC2 'sudo mkdir -p /opt/app/EKEC'
37+
ssh EKEC_EC2'sudo chown ubuntu:ubuntu /opt/app/EKEC'
38+
scp -r ./[!.]* EKEC_EC2:/opt/app/EKEC
3939
4040
- name: Install dependencies
4141
run: |
42-
ssh EKEC-EC2 'npm install --prefix /opt/app/EKEC'
42+
ssh EKEC_EC2 'npm install --prefix /opt/app/EKEC'
4343
4444
- name: Copy systemd service file
4545
run: |
46-
ssh EKEC-EC2 '
46+
ssh EKEC_EC2 '
4747
echo "[Unit]
4848
Description=EKEC
4949
After=network.target
@@ -59,9 +59,9 @@ jobs:
5959
6060
- name: Enable systemd service
6161
run: |
62-
ssh EKEC-EC2 'sudo systemctl daemon-reload'
63-
ssh EKEC-EC2 'sudo systemctl enable EKEC'
62+
ssh EKEC_EC2 'sudo systemctl daemon-reload'
63+
ssh EKEC_EC2 'sudo systemctl enable EKEC'
6464
6565
- name: Restart systemd service
6666
run: |
67-
ssh EKEC-EC2 'sudo systemctl restart EKEC'
67+
ssh EKEC_EC2 'sudo systemctl restart EKEC'

0 commit comments

Comments
Β (0)