Skip to content

Commit

Permalink
ci: fix keys not echoing
Browse files Browse the repository at this point in the history
  • Loading branch information
JeremyTubongbanua committed Sep 13, 2023
1 parent e34efeb commit b611520
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions .github/workflows/prod_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,20 @@ jobs:
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3

- name: Copy NP/NPD keys
- name: Setup NP/NPD key env
run: |
SSHNP_ATKEYS="$(tr '[:lower:]' '[:upper:]' <<< '${{ env.SSHNP_ATSIGN }}')"
echo "SSHNP_ATKEYS=ATKEYS_${SSHNP_ATKEYS:1}" >> $GITHUB_ENV
SSHNPD_ATKEYS="$(tr '[:lower:]' '[:upper:]' <<< '${{ env.SSHNPD_ATSIGN }}')"
echo "SSHNPD_ATKEYS=ATKEYS_${SSHNPD_ATKEYS:1}" >> $GITHUB_ENV
- name: Setup NP/NPD keys
working-directory: tests/end2end_tests/contexts
run: |
echo "${{ env.SSHNP_ATSIGN_KEYS }}" > sshnp/keys/${{ env.SSHNP_ATSIGN }}_key.atKeys
echo "${{ env.SSHNPD_ATSIGN_KEYS }}" > sshnpd/keys/${{ env.SSHNPD_ATSIGN }}_key.atKeys
echo "${{ secrets[env.SSHNP_ATKEYS] }}" > sshnp/.atsign/keys/${{ env.SSHNP_ATSIGN }}_key.atKeys
echo "${{ secrets[env.SSHNPD_ATKEYS] }}" > sshnpd/.atsign/keys/${{ env.SSHNPD_ATSIGN }}_key.atKeys
- name: Set up NP/NPD entrypoints
working-directory: tests/end2end_tests/tools/configuration
run: |
Expand All @@ -56,7 +65,6 @@ jobs:
${{ env.SSHNP_ATSIGN }} \
${{ env.SSHNPD_ATSIGN }} \
${{ matrix.rvd }} \
${{ env.WAITING_TIME }} \
sshnp_entrypoint.sh
./setup-sshnpd-entrypoint.sh \
Expand All @@ -65,7 +73,7 @@ jobs:
${{ env.SSHNPD_ATSIGN }} \
sshnpd_entrypoint.sh
- name: Set up RVD stuff
- name: Set up RVD keys and entrypoint
if: matrix.rvd == env.SSHRVD_ATSIGN
working-directory: tests/end2end_tests
run: |
Expand Down

0 comments on commit b611520

Please sign in to comment.