Skip to content

Commit cc3e164

Browse files
Update test-deployer.yml
1 parent 27df46a commit cc3e164

File tree

1 file changed

+7
-13
lines changed

1 file changed

+7
-13
lines changed

.github/workflows/test-deployer.yml

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,6 @@ on:
55
branches:
66
- pipeline-test
77

8-
env:
9-
AWS_REGION: us-east-1
10-
EC2_KEY_PATH: ~/.ssh/pet-east1.open.pem
11-
GITLAB_KEY_PATH: ~/.ssh/id_rsa
12-
138
jobs:
149
test-deployer:
1510
runs-on: self-hosted
@@ -55,7 +50,7 @@ jobs:
5550
any_errors_fatal = True
5651
host_key_checking = False
5752
max_fail_percentage = 0
58-
private_key_file = ${{ env.EC2_KEY_PATH }}
53+
private_key_file = ~/.ssh/pet-east1.open.pem
5954
EOF
6055
6156
- name: Install this collection
@@ -67,19 +62,18 @@ jobs:
6762
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
6863
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
6964
aws-session-token: ${{ secrets.AWS_SESSION_TOKEN }}
70-
aws-region: ${{ env.AWS_REGION }}
65+
aws-region: us-east-1
7166

7267
- name: Setup SSH for GitLab
7368
run: |
74-
mkdir -p "$(dirname "${{ env.GITLAB_KEY_PATH }}")"
75-
echo "${{ secrets.GITLAB_SSH_KEY }}" > "${{ env.GITLAB_KEY_PATH }}"
76-
chmod 600 "${{ env.GITLAB_KEY_PATH }}"
69+
mkdir -p ~/.ssh
70+
echo "${{ secrets.GITLAB_SSH_KEY }}" > ~/.ssh/id_rsa
71+
chmod 600 ~/.ssh/id_rsa
7772
7873
- name: Setup SSH for EC2
7974
run: |
80-
mkdir -p "$(dirname "${{ env.EC2_KEY_PATH }}")"
81-
echo "${{ secrets.EC2_SSH_KEY }}" > "${{ env.EC2_KEY_PATH }}"
82-
chmod 600 "${{ env.EC2_KEY_PATH }}"
75+
echo "${{ secrets.EC2_SSH_KEY }}" > ~/.ssh/pet-east1.open.pem
76+
chmod 600 ~/.ssh/pet-east1.open.pem
8377
8478
- name: Clone Themis repository
8579
working-directory: ..

0 commit comments

Comments
 (0)