Skip to content

Commit

Permalink
Clean up a bit.
Browse files Browse the repository at this point in the history
  • Loading branch information
chadwcarlson committed Oct 27, 2023
1 parent 2620723 commit 547201a
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/project.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,19 +62,19 @@ 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."
run: |
echo "::notice::Create a project in the test org."
upsun project:create -o $TEST_ORG_NAME \
upsun project:create -o "$TEST_ORG_NAME" \
--title "$TEST_PROJECT_TITLE" \
--region "$TEST_PROJECT_REGION.$TEST_PROJECT_REGION_SUFFIX" \
--default-branch $TEST_PROJECT_DEFAULT_BRANCH \
Expand All @@ -91,7 +91,7 @@ jobs:
- name: "[PROJECT] 3. Set remote."
run: |
echo "::notice::Setting remote for the project locally."
TEST_PROJECT_ID=$(upsun project:list -o $TEST_ORG_NAME --title "$TEST_PROJECT_TITLE" --pipe)
TEST_PROJECT_ID=$(upsun project:list -o "$TEST_ORG_NAME" --title "$TEST_PROJECT_TITLE" --pipe)
upsun project:set-remote $TEST_PROJECT_ID
- name: "[PROJECT] 4. Deploy the demo application to Upsun."
run: |
Expand Down

0 comments on commit 547201a

Please sign in to comment.