Skip to content

Commit

Permalink
Read key, verify cli push.
Browse files Browse the repository at this point in the history
  • Loading branch information
chadwcarlson committed Oct 27, 2023
1 parent 42a8b5f commit 7a52dec
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/project.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,13 +74,13 @@ jobs:
echo "::notice::Verifying CLI is authenticated correctly."
# upsun auth:api-token-login
upsun org:info -o $TEST_ORG_NAME name
# - name: "[SETUP] 6. Authenticate Upsun CLI for pushes"
# run: |
# upsun ssh-cert:load --new -y
# touch ~/.ssh/known_hosts
# chmod 644 ~/.ssh/known_hosts
# ssh-keyscan ssh.$TEST_PROJECT_REGION.platform.sh -v >> ~/.ssh/known_hosts
# ssh-keyscan git.$TEST_PROJECT_REGION.platform.sh -v >> ~/.ssh/known_hosts
- name: "[SETUP] 6. Authenticate Upsun CLI for pushes"
run: |
upsun ssh-cert:load --new -y
touch ~/.ssh/known_hosts
chmod 644 ~/.ssh/known_hosts
ssh-keyscan ssh.$TEST_PROJECT_REGION.platform.sh -v >> ~/.ssh/known_hosts
ssh-keyscan git.$TEST_PROJECT_REGION.platform.sh -v >> ~/.ssh/known_hosts
################################################################################################
# B. Setting up test project.
- name: "[PROJECT] 1. Create a project in the test org, update prod branch title."
Expand All @@ -92,6 +92,7 @@ jobs:
--default-branch $TEST_PROJECT_DEFAULT_BRANCH \
--no-set-remote \
-y
# @todo: export this var, so we don't have to redefined it during set-remote & delete project.
TEST_PROJECT_ID=$(upsun project:list -o "$TEST_ORG_NAME" --title "$TEST_PROJECT_TITLE" --pipe)
upsun environment:info title "Production ($TEST_PROJECT_DEFAULT_BRANCH)" \
-e $TEST_PROJECT_DEFAULT_BRANCH \
Expand Down Expand Up @@ -135,5 +136,6 @@ jobs:
run: |
sleep 30
echo "::notice::Cleaning up after successful run."
TEST_PROJECT_ID=$(upsun project:list -o "$TEST_ORG_NAME" --title "$TEST_PROJECT_TITLE" --pipe)
echo "::notice::Deleting project: ${TEST_PROJECT_ID}"
upsun project:delete -p $TEST_PROJECT_ID -y

0 comments on commit 7a52dec

Please sign in to comment.