Skip to content

Commit

Permalink
updated deploy workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
perennialAutodidact committed Mar 10, 2024
1 parent 6b90fb3 commit 21e9420
Showing 1 changed file with 15 additions and 8 deletions.
23 changes: 15 additions & 8 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,20 @@ jobs:
./install.sh --accept-all-defaults
exec -l $SHELL
- name: 'Check existing instance'
run : |
echo "oci compute instance list \
--lifecycle-state RUNNING \
--compartment-id ${{secrets.VM_COMPARTMENT_ID}} \
--display-name memory-snap \
--raw-output \
"
# - name: 'Check existing instance'
# run : |
# echo "oci compute instance list \
# --lifecycle-state RUNNING \
# --compartment-id ${{secrets.VM_COMPARTMENT_ID}} \
# --display-name memory-snap \
# --raw-output \
# "

- name: 'Wait for SSH'
run: |
while ! nc -w5 -z ${{ secrets.OCI_INSTANCE_PUBLIC_IP }} 22; do
sleep 5
echo "SSH not available..."
done; echo "SSH ready!"

0 comments on commit 21e9420

Please sign in to comment.