Skip to content

Commit

Permalink
chore(windows): use rsa for windows (#99)
Browse files Browse the repository at this point in the history
Signed-off-by: Lukasz Dziedziak <[email protected]>
  • Loading branch information
lukidzi authored Jul 1, 2024
1 parent ca6a423 commit 4af5b75
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,12 @@ jobs:
- uses: actions/checkout@v4
# TODO use aws ssm
- name: Generate SSH key
run: ssh-keygen -t ed25519 -q -N "" -f ~/.ssh/id_ed25519
run: |
if [[ "${{ inputs.os }}" == windows ]]; then
ssh-keygen -t rsa -b 4096 -q -N "" -f ~/.ssh/id_aws
else
ssh-keygen -t ed25519 -q -N "" -f ~/.ssh/id_aws
fi
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v4
with:
Expand All @@ -83,7 +88,7 @@ jobs:
working-directory: terraform
run: |
cat <<EOF >> terraform.tfvars
public_key_path = "~/.ssh/id_ed25519.pub"
public_key_path = "~/.ssh/id_aws.pub"
arch = "${{ inputs.arch }}"
os = "${{ inputs.os }}"
fips = ${{ inputs.fips }}
Expand Down

0 comments on commit 4af5b75

Please sign in to comment.