Skip to content

Commit

Permalink
Reorg
Browse files Browse the repository at this point in the history
  • Loading branch information
chadwcarlson committed Oct 28, 2023
1 parent 2d788ac commit 5088812
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/project.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,12 @@ jobs:
################################################################################################
# B. Setup authenticated Upsun CLI user.
- name: "[setup_cli_auth] 2. Test: an authenticated CLI can retrieve organization info."
run: |
echo "::notice::Verifying CLI is authenticated correctly."
RESULT=$(upsun org:info -o $ORG_NAME name)
./$TEST_PATH/compare_strings.sh $RESULT $ORG_NAME "Authenticate Upsun CLI user"
upsun auth:info username
- name: "[setup_cli_auth] 1. Authenticate Upsun CLI to allow push from workflow."
run: |
echo "::notice::Generating SSH certificate for Upsun CLI."
Expand All @@ -59,13 +65,6 @@ jobs:
chmod 644 $UPSUN_HOST_FILE
ssh-keyscan ssh.$UPSUN_HOST_REGION.$UPSUN_HOST_SUFFIX -v >> $UPSUN_HOST_FILE
ssh-keyscan git.$UPSUN_HOST_REGION.$UPSUN_HOST_SUFFIX -v >> $UPSUN_HOST_FILE
- name: "[setup_cli_auth] 2. Test: an authenticated CLI can retrieve organization info."
run: |
echo "::notice::Verifying CLI is authenticated correctly."
RESULT=$(upsun org:info -o $ORG_NAME name)
./$TEST_PATH/compare_strings.sh $RESULT $ORG_NAME "Authenticate Upsun CLI user"
upsun auth:info username
# ################################################################################################
# # A. Setting up tools and authentication to test project/organization.
Expand Down
4 changes: 4 additions & 0 deletions utils/tests/ssh-certs.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env bash

upsun ssh-cert:info -P filename
upsun ssh-cert:info -P valid_before

0 comments on commit 5088812

Please sign in to comment.