Commit 76cec8b 1 parent fe48a53 commit 76cec8b Copy full SHA for 76cec8b
File tree 1 file changed +0
-10
lines changed
1 file changed +0
-10
lines changed Original file line number Diff line number Diff line change 8
8
runs-on : ubuntu-latest
9
9
10
10
steps :
11
- - name : Checkout code
12
- uses : actions/checkout@v2
13
-
14
- - name : Debug Secret
15
- run : |
16
- echo "EC2_SSH_KEY is set: ${{ secrets.AWS_INSTANCE_SSH_PRIVATE_KEY != '' }}"
17
- echo "KNOWN_HOSTS is set: ${{ secrets.KNOWN_HOSTS != '' }}"
18
- echo "AWS_INSTANCE_IP is set: ${{ secrets.AWS_INSTANCE_IP != '' }}"
19
-
20
11
- name : Install SSH key
21
12
uses : shimataro/ssh-key-action@v2
22
13
with :
32
23
sudo chown -R ec2-user:ec2-user /opt/albertclo.com &&
33
24
cd /opt/albertclo.com &&
34
25
if [ ! -d .git ]; then git clone https://github.com/AlbertClo/albertclo.com.git . ; fi &&
35
- cat 777
36
26
git config --global --add safe.directory /opt/albertclo.com &&
37
27
git remote set-url origin https://github.com/AlbertClo/albertclo.com.git &&
38
28
git add -A && git reset HEAD --hard &&
You can’t perform that action at this time.
0 commit comments