Skip to content

Commit

Permalink
Update deploy.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
InitialXKO authored Dec 19, 2023
1 parent 132efff commit 4c81008
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .container-hosting/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -140,16 +140,16 @@ PATH=./bin:$PATH

echo Setup ssh to talk to dokku host
mkdir -p ~/.ssh
amber -v exec -- sh -c 'ssh-keyscan $DOKKU_HOST >> ~/.ssh/known_hosts'
amber -v --unmasked exec -- sh -c 'ssh-keyscan $DOKKU_HOST >> ~/.ssh/known_hosts'
eval "$(ssh-agent -s)"
ssh-add -D
ssh-add - <<< "$DOKKU_SSH_PRIVATE_KEY"
ssh-add -l
SSH_ARGS="-F $SSH_CONFIG_FILE"

amber exec -- sh -c ''"ssh $SSH_ARGS"' dokku@$DOKKU_HOST -C $CONTAINER_HOSTING_API_KEY dokku apps:create $APP_NAME || true'
amber exec -v --unmasked -- sh -c ''"ssh $SSH_ARGS"' dokku@$DOKKU_HOST -C $CONTAINER_HOSTING_API_KEY dokku apps:create $APP_NAME || true'
# amber exec -- sh -c ''"ssh $SSH_ARGS"' dokku@$DOKKU_HOST -C $CONTAINER_HOSTING_API_KEY dokku builder:set $APP_NAME build-dir /'
amber exec -- sh -c ''"ssh $SSH_ARGS"' dokku@$DOKKU_HOST -C $CONTAINER_HOSTING_API_KEY dokku builder-dockerfile:set $APP_NAME dockerfile-path Dockerfile'
amber exec -v --unmasked -- sh -c ''"ssh $SSH_ARGS"' dokku@$DOKKU_HOST -C $CONTAINER_HOSTING_API_KEY dokku builder-dockerfile:set $APP_NAME dockerfile-path Dockerfile'

# Set common env settings

Expand Down

0 comments on commit 4c81008

Please sign in to comment.