Skip to content

Commit

Permalink
test changes and doc for refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
subhojit777 committed Feb 18, 2022
1 parent 8afa2aa commit 9b7b2a9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,11 @@ fi
# Copy known hosts into the SSH config.
mkdir -p ~/.ssh && chmod 0700 ~/.ssh
cat ${GITHUB_ACTION_PATH}/known_hosts >> ~/.ssh/known_hosts
# The platform.sh project host is hardcoded.
# This can be fixed later by writing a script that is supposed to return the project hostname.
ssh-keyscan -t rsa -H git.au.platform.sh >> ~/.ssh/known_hosts

platform project:set-remote ${PLATFORM_PROJECT_ID}
ssh-keyscan -t ed25519 git.au.platform.sh >> ~/.ssh/known_hosts
PLATFORM_OPTS="-vv --activate --target ${GITHUB_REF_NAME}"
if [[ -n "$FORCE_PUSH" ]]; then
PLATFORM_OPTS="$PLATFORM_OPTS --force"
Expand Down

0 comments on commit 9b7b2a9

Please sign in to comment.